OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Accessing Boolean field in Base

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
disr
Newbie
Newbie


Joined: 23 Mar 2008
Posts: 1

PostPosted: Sun Mar 23, 2008 4:52 pm    Post subject: Accessing Boolean field in Base Reply with quote

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
Code:
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group