[Gambas-user] Stumped by .99

Craig Packard cpackard at ...626...
Tue Sep 21 13:24:10 CEST 2004


On Tue, 21 Sep 2004 07:07:03 +0200, ron <ronstk at ...239...> wrote:
> On Tuesday 21 September 2004 02:25, Craig Packard wrote:
> 
> > Bingo, moveto is working thanks to ( ).  
> I told you :)
> 
> change
>   i = rData.MoveTo[CInt(txtRecNumber.Text)]
> to
>   i = rData.MoveTo(VAL(txtRecNumber.Text))  
> For rData.MoveTo see help for syntax.  Not [] but () <-------------
> 
> 

Yes thanks it works now.  And note I did switch and use VAL! 


> Try rData.Update instead rData.Update()

Yea, that is how I had it.  I only changed it to Update() to see if
that was what I was doing wrong.  I just didn't change it back.  So
that isn't it.

> See the source for the database manager.
> There are really good examples how to use the gb.db component.
> Not a easy one, because the many separate class files.
> But using the 'Find' tool searching for the methos you can use it.

Yes that is what I've been doing but in that project it seems to work!
 It just does a .Update at the end!  I do that and it doesn't save
anything!  It is what made me put the .begin and .commit commands in. 
I wasn't using them and then saw them in use in the example and
started to use them.  Although I didn't think MySQL supported
transactions....


> 
> For the screenshot, it does not tell me anything, sorry.
> The blue marked line, if that is the error line, wants
> on the form two objects, textbox1 and textlabel1.
> Are the objects there and have the correct name (in property sheet)?

Yes names are all fine and they are all lowercase.  I did that just to
remove any capitilazationn problems.  What the screenshot is supposed
to do is show how the watch window is docked or attached to the
project window.  It used to be a seperate window which was MUCH easier
to use.  And it shows the error I'm getting in the watch window.




More information about the User mailing list