|
|
DataqFile Controls > ReadDataqFile > Events > FileError |
FileError
Applies to: |
READDATAQFILE Active X Control |
Description: |
Most commonly fires when the specified file does not exist or it is not a WinDaq file. Some error codes are as follows: 250 File path is too long 29 Failed to read the data 99999 Invalid WinDaq File other error codes - Failed to access file. Same as calling GetLastError() when file accessing has failed. If you continue to receive a file 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_FileError(ByVal Code As Long) Label1.Caption = Code End Sub |