[Gambas-user] Edit XML

2010-11-15 Thread Mauricio Baeza
Hi all ... With the library for XML I can, without problems ... 1 .- Create new XML file 2 .- Read any XML file What I can not do is change just one attribute of an element of an existing file. Does anyone have a sample? Greetings -- Mauricio Baeza 10 años usando OpenOffice.org, libre, grat

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-15 Thread Benoît Minisini
> > More... > > > > Dim TestSingle As Single > > Dim pp As Pointer > > > > TestSingle = 33.1 > > pp = VarPtr(TestSingle) > > > > SinglePtr(pp) = 33.1 is False! Gives -2... > > > > Jussi > > Actually SinglePtr() cannot work on local variables, because internally > there is no "Single" local

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-15 Thread Benoît Minisini
> More... > > Dim TestSingle As Single > Dim pp As Pointer > > TestSingle = 33.1 > pp = VarPtr(TestSingle) > > SinglePtr(pp) = 33.1 is False! Gives -2... > > > Jussi > Actually SinglePtr() cannot work on local variables, because internally there is no "Single" local variable, only "Float

Re: [Gambas-user] Elusive Gambas3 crashing bug

2010-11-15 Thread Benoît Minisini
> More... > > Shouldn't Finally to be read after Catch, not before? > Now I get: > TestErrorManagment(1) = 1 <-- Catch is never read! > TestErrorManagment(2) = 21 > > I exepected; > TestErrorManagment(1) = 4 > TestErrorManagment(2) = 21 > > Right now word Finally doesn't do anything. > > > Pr

Re: [Gambas-user] GambasTester 0.9.9

2010-11-15 Thread Jussi Lahtinen
OK, these are not the errors I meant... These are obviously my errors. I fixed Format$ to be compared against Str$(). There might be other similar errors too... Jussi 2010/11/15 Benoît Minisini > > If Format$(Pi, "#.##") <> 3.14 Then > > Return 85 > > Endif > > > > this test can be true only

Re: [Gambas-user] Display & character on Message box

2010-11-15 Thread Benoît Minisini
> Hi, > > How to display '&' character? I tried: > > Message.Info("&") > Message.Info("&&") > Message.Info(chr(38)) > Message.Info("&abc") > Message.Info("abc &") > > And got empty message box. The bug has been fixed in revision #3295. Regards, -- Benoît Minisini ---

[Gambas-user] Null Object with XmlDocument

2010-11-15 Thread Mauricio Baeza
Hello ... A few days ago the following code worked Dim oDocXML As XmlDocument oDocXML.Open ("/home/user/file.xml") Now, it gives me the error statement Null Object I tried it in Gambas 2.21 in ArchLinux x64 x64 and Ubuntu 10.10 Can anyone prove it?, Thanks -- Mauricio Baeza 10 años usando

Re: [Gambas-user] GambasTester 0.9.9

2010-11-15 Thread Benoît Minisini
> If Format$(Pi, "#.##") <> 3.14 Then > Return 85 > Endif > > this test can be true only in country where decimal separator is "." > > > in france ... the decimal separator is ","... then you compare a > string to a float !! > > All the error i have are based on this problem. > The problem is

Re: [Gambas-user] GambasTester 0.9.9

2010-11-15 Thread Fabien Bodard
If Format$(Pi, "#.##") <> 3.14 Then Return 85 Endif this test can be true only in country where decimal separator is "." in france ... the decimal separator is ","... then you compare a string to a float !! All the error i have are based on this problem. ---

Re: [Gambas-user] Result object

2010-11-15 Thread Charlie Reinl
Am Montag, den 15.11.2010, 19:56 +0100 schrieb tobias: > hi, > i have again another question about the result object... > when i do: > hResult = hConnection.Edit("table") > > i get a read/write result, i can move through the elements and edit > their fields, e.g. > hResult.MoveTo(2) > hResult["id

[Gambas-user] Result object

2010-11-15 Thread tobias
hi, i have again another question about the result object... when i do: hResult = hConnection.Edit("table") i get a read/write result, i can move through the elements and edit their fields, e.g. hResult.MoveTo(2) hResult["id"] = 10 right? but where do i have to move to to add one (or more) new e

[Gambas-user] GambasTester 0.9.9

2010-11-15 Thread Jussi Lahtinen
Hi! My quick&dirty side project for Gambas 3 is now ready to be share. It makes some seemingly stupid and some, actually stupid tests, to confirm that current revision works. It is far from perfect, but better than nothing. I hope people keep on improving this. There are still few untested commands

[Gambas-user] Some confusion re TabStrip property settings

2010-11-15 Thread Bruce Bruen
It appears to me (in Gambas 2) that some properties of TabStrip .Tab items, such as Caption, are only settable via code if the item is visible. PUBLIC SUB Form_Open() DIM ix AS Integer TabStrip1.Count = 9 FOR ix = 1 TO 9 TabStrip1[ix - 1].Text = ix IF ix > 6 THEN TabStrip1[ix -