[Gambas-user] Serialization
Benoît Minisini
gambas at ...1...
Sun Oct 3 22:09:28 CEST 2010
> Hi!
> I spotted these lines from svn log:
>
> [INTERPRETER]
> * NEW: The READ instruction can read arrays and collections with
> 'AS Object' as well as 'AS Variant'.
>
> [INTERPRETER]
> * NEW: WRITE and READ instructions can handle collections and arrays. Call
> that "serialization".
>
>
> Can you give me example how this works?
> Example, I have two dimensional arrays, how do I read them from file with
> this new way?
>
> Jussi
Bad luck, it works for single dimension arrays only.
It works like that:
Dim MyArray As String[]
' Write the array to a stream
Write #Stream, MyArray As Object
' Read it back later
MyArray = Read #Stream As Object
Regards,
--
Benoît Minisini
More information about the User
mailing list