通用歷史曲線控件提供了兩個控件的方法HTGetTimeStringAtScooter(LONG nScootNum,STRING szFormat),HTGetValueAtScooter(LONG nPenNum,LONG nScootNum,STRING szValType),通過這兩個函數用戶就可以獲取游標指定的位置的具體時間和對應的數值了。(假定通用歷史曲線控件的控件名為hhh)則編程如下:
hhh.HTGetTimeStringAtScooter(1,"DateTime");
hhh.HTGetValueAtScooter(1,1,"Value");