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

Check if exist a textbox ?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
arfgh
General User
General User


Joined: 21 Feb 2010
Posts: 19

PostPosted: Wed Feb 24, 2010 9:16 am    Post subject: Check if exist a textbox ? Reply with quote

How can i check with basic if a textfiled exists or not ?

thx in advabce
Back to top
View user's profile Send private message
QuazzieEvil
Super User
Super User


Joined: 17 Jan 2007
Posts: 599
Location: Houston, TX

PostPosted: Wed Feb 24, 2010 10:37 am    Post subject: Reply with quote

use the hasByName(SomeFieldName) method of the data form.

Code:
Sub CommandButton_MouseButtonReleased(Event As Object)
     Dim Form As Object
   
     Form=Event.Source.Model.Parent
    If Form.hasByName("txtFirstName") Then
       Msgbox "yes"
   Else
      MsgBox "No"
    End If
End Sub

_________________
Free Docs @ http://www.baseprogramming.com/resources.html
Book @ lulu.com http://www.lulu.com/content/2455551
Back to top
View user's profile Send private message Visit poster's website
arfgh
General User
General User


Joined: 21 Feb 2010
Posts: 19

PostPosted: Wed Feb 24, 2010 10:58 am    Post subject: Reply with quote

thx will try it
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 Base 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