DataqFile Controls > WriteDataqFile > Events > ControlError

Previous | Next

ControlError

Applies to:

WRITEDATAQFILE Active X Control

Description:

General errors from the Active X control, as follows:

250:      File path is too long

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 DataqSdk1_ NewData(ByVal Count As Integer)

WriteDataqFile1. SaveData (DataqSdk1. GetData)

DQChart1. Chart (DataqSdk1. GetData)

End Sub

 

Private Sub Start_Click()

DataqSdk1. EventPoint = 20

DataqSdk1. Start

WriteDataqFile1. Open

End Sub

 

Private Sub Stop_Click()

DataqSdk1. Stop

WriteDataqFile1. Close

End Sub

 

Private Sub WriteDataqFile1_ControlError (By Val Code As Integer)

Label1.Caption=Code

DataqSdk1. Stop

WriteDataqFile1. Close

End Sub

 

Reference Materials | Top