Page 1 of 1

Syntax or Parser error

PostPosted: Wed Jun 20, 2012 12:36 pm
by Henning
Hi,

Dim PgmBuffer[0] As Byte
PgmBuffer is later ReDim Preserve'd to correct size.
Dim retval As Boolean
OutFileName is correct, WriteString with a String argument works.

This rises an error:
retval = WriteArray(PgmBuffer, OutFileName)

/Henning

Re: Syntax or Parser error

PostPosted: Wed Jun 20, 2012 7:19 pm
by Slowdown
Last time i checked WriteArray wasn't supported but must be honest that's a while ago.

Re: Syntax or Parser error

PostPosted: Thu Jun 21, 2012 9:40 am
by berndnoetscher
Henning wrote:Hi,

Dim PgmBuffer[0] As Byte
PgmBuffer is later ReDim Preserve'd to correct size.
Dim retval As Boolean
OutFileName is correct, WriteString with a String argument works.

This rises an error:
retval = WriteArray(PgmBuffer, OutFileName)

/Henning


WriteArray is not supported yet. :oops:
But it could be done by a own function, of course.

Re: Syntax or Parser error

PostPosted: Thu Jun 21, 2012 10:10 am
by Henning
WriteArray is not supported yet.


I found it in the doc's so...
No big deal, I Chr() the Byte Array to a String. Anyway, I would prefer Put, Get and the other std file I/O routines to work. :)

/Henning

Re: Syntax or Parser error

PostPosted: Thu Jun 21, 2012 3:12 pm
by Slowdown
Solved for now, see /Examples/Data Types/Dictionary_3
But it's no substitute for Put, Get and others :shock:

Re: Syntax or Parser error

PostPosted: Tue Jun 26, 2012 8:00 am
by berndnoetscher
Henning wrote:
WriteArray is not supported yet.


I found it in the doc's so...

/Henning


Sorry, the it should be marked as "not implemented yet" in the docs. The docs is expected to be correct and showing working features.