|
|
DataqFile Controls > ReadDataqFile > Events > ControlError |
ControlError
Applies to: |
READDATAQFILE Active X Control |
Description: |
General errors from the Active X control, as follows: -2000: Requested zero data points -2001: Asked for too many data points -9999: Failed to allocate memory for the return variant 250: File path is too long 29: Invalid WWB file header size 99999: Invalid sample rate If Windows generates an error, this event returns that error to your program. If you continue to receive a control error and absolutely cannot determine the problem add the line "debug = 2" to the [Global] section of C:\Windows\tpdataq.ini and try running your program again. You will see a Windows message box showing API functions and operations being used. Using this method, customer service can better understand your problem. Be sure to remove the line once the problem is resolved. |
Example: |
Private Sub Exit_Click() ReadDataqFile1. Close End End Sub
Private Sub Form_Load() ReadDataqFile1. Open DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) End Sub
Private Sub MoveRight_Click() ReadDataqFile1. MoveTo DQChart1. Xmax, 1 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) End Sub
Private Sub MoveLeft_Click() ReadDataqFile1. MoveTo -DQChart1. Xmax, 1 DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary)) End Sub
Private Sub ReadDataqFile1_ControlError(ByVal Code As Long) Label1.Caption = Code End Sub |