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
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
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
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)
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
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