disr Newbie

Joined: 23 Mar 2008 Posts: 1
|
Posted: Sun Mar 23, 2008 4:52 pm Post subject: Accessing Boolean field in Base |
|
|
OO ver 2.3.1, embedded HSQL database
-------------------------------------------------
Trying to retrieve a Boloean field , <chkDigital_file>,from the record.
Retrieval of text fields is OK, but can't find how I should code for the Boolean.
| Code: |
Sub cmdUser_Display_OnClick(event As Object)
Dim DataPath As String
Dim FileName As String
Dim Form As Object
Dim FilePath As String
Dim DigitalFile As Boolean
Form=event.Source.getModel().getParent()
DataPath=Form.getByName("txtData_folder").Text
FileName=Form.getByName("txtFile_name").Text
DigitalFile=Form.getByName("chkDigital_file").Boolean
If Digitalfile Then
FilePath=DataPath & FileName
Shell ("c:\WINDOWS\SYSTEM32\user_display.bat " & FilePath)
Else
MsgBox "There is no Digital File indicator for this entry"
End If
End Sub
|
I have tried combinations of Boolean, Bool, Text or blank in the construct but get error:
Property or Method not found.
Can someone advise me the correct method of retrieving this data please?
I've so far been unable to locate any suitable manual, FAQ or help pages to offer me guidance. Any advice in that direction would be most welcome.
regards, DISR |
|