- open "list"+left$(s$(si+4),4)+".csv" as #2 len=4
field #2, 4 as pk$
GET #2, 100
- error 4: Duplicated definition, field
error 16: Expected ','
Thanks.
DC
Hello DC,dcouzin wrote: field #2, 4 as pk$
Hope it helps?Specifies field alignment.
Syntax
Type|Union typename Field = { 1 | 2 | 4 }
...
End Type|Union
Code: Select all
open "list"+left$(s$(si+4),4)+".csv" as #2 len=4
pk$ = space$(4)
GET #2, 100, pk$
Code: Select all
open "list"+left$(s$(si+4),4)+".csv" for binary as #2
pk$ = space$(4)
GET #2, 99*4+1, pk$
Code: Select all
open "file.csv" as #2 len=4
pk$ = space$(4)
GET #2, 100, pk$
Code: Select all
open "file.csv" as #2 len=4
field #2, 4 as pk$
GET #2, 100
I think that for a string, it is well explained (description + examples) on the page of the documentation on 'GET # (File I/O)' that we must provide a string 's' well sized to the size 'N' desired (because 'amount' is not allowed):dcouzin wrote:I hope this, with suitable generalization but understandable by QB people, can be added to the FB documentation.