Re: [Gambas-user] Using Open in Gambas 3

2010-09-06 Thread craf
OK, thank you. Cristian Abarzua F. >-Mensaje original- >De: Fabien Bodard >Reply-to: mailing list for gambas users > >Para: mailing list for gambas users >Asunto: Re: [Gambas-user] Using Open in Gambas 3 >Fecha: Mon, 6 Sep 2010 17:18:51 +0200 >my english

Re: [Gambas-user] Using Open in Gambas 3

2010-09-06 Thread Fabien Bodard
my english is bad ... i want to say benoit have change the syntax in gb2 2010/9/6 charlesg : > > > Fabien Bodard-4 wrote: >> >> this is new since gb2 >> > > Not sure about that. The following works even back to 2.13 > > >  DIM j AS Integer = 0 >  INC Application.busy >  hFileOut = OPEN "/home/char

Re: [Gambas-user] Using Open in Gambas 3

2010-09-06 Thread charlesg
Fabien Bodard-4 wrote: > > this is new since gb2 > Not sure about that. The following works even back to 2.13 DIM j AS Integer = 0 INC Application.busy hFileOut = OPEN "/home/charles/rba/rba.csv" FOR CREATE sql = "select * from stmaster" res = mdFile.$hConnStock.Exec(sql) FOR

Re: [Gambas-user] Using Open in Gambas 3

2010-09-06 Thread Fabien Bodard
this is new since gb2 2010/9/6 charlesg : > > > > craf wrote: >> >> >> In Gambas 3 can not be used and must be assigned to hfile: >> >> Dim hFile As File >> Dim line As String >> >> hFile = Open "text" For Read >> >> While Not Eof(hFile)

Re: [Gambas-user] Using Open in Gambas 3

2010-09-05 Thread charlesg
craf wrote: > > > In Gambas 3 can not be used and must be assigned to hfile: > > Dim hFile As File > Dim line As String > > hFile = Open "text" For Read > > While Not Eof(hFile) > Line Input #hfile, line > Print linea

[Gambas-user] Using Open in Gambas 3

2010-09-05 Thread craf
I use the following code to read from a text file in Gambas 2: Dim hFile As File Dim line As String Open "text" For Read As #hFile While Not Eof(hFile) Line Input #hfile, line Print line Wend close #hFile In Gamb