Runtime connected databrowser

Post

Posted
Rating:
#1 (In Topic #1090)
Regular
Andreas_K is in the usergroup ‘Regular’
 Hello, is there a way to detect the add Button on the runtime connected databrowser? and when i like to change the columns width in the forms load event i get everytime the error no object (i think not createt at this time…)
Thanks
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’

Andreas_K said

Hello, is there a way to detect the add Button on the runtime connected databrowser? and when i like to change the columns width in the forms load event i get everytime the error no object (i think not createt at this time…)
Thanks

I do not know about the first question but for the second one there are solutions i know of…

Create the DataBrowser and add it to your form in Form_Open (instead of adding in the IDE designer)
Then you can create and initialize it before trying your commands.

Or use the Form_Show() event instead.

Code (gambas)

  1.  
  2. Public Sub Form_Show()
  3.  
  4.   Wait 0.1  ' let the event loop cycle so the form is actually opened and initialized.
  5.  
  6.   ' Now your commands should work.
  7.  
  8.  
  9.  
Online now: No Back to the top
1 guest and 0 members have just viewed this.