DataqFile Controls > ReadDataqFile > Properties > FileName

Previous | Next

FileName

Applies to:

READDATAQFILE Active X Control

Description:

Specifies the path and the file name of the file to read. Default is C:\Sample.wdq.

Syntax:

ReadDataqFile1.FileName=variable (where variable is the file name and location)

Variable:

String

Example:

Private Sub CloseFile_Click()

ReadDataqFile1. Close

End

End Sub

 

Private Sub Form_Load()

'filename must be in quotes

ReadDataqFile1.FileName = "c:\temp\sample.wdq"

ReadDataqFile1. Open

DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary))

Label1.Caption = "The name of the file you are reading is " & ReadDataqFile1.FileName & "."

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

 

Reference Materials | Top