[Gambas-user] How to clone an object?
Jussi Lahtinen
jussi.lahtinen at gmail.com
Sat Apr 25 02:00:09 CEST 2020
Oh, maybe that is the case with strings...
Jussi
On Sat, Apr 25, 2020 at 2:56 AM <brian at westwoodsvcs.com> wrote:
> This is how I was told to do it as writing adds many headers that sizeof
> does not return
>
> --
> Thanks
> Brian
> Friday, 24 April 2020, 03:50PM -07:00 from Jussi Lahtinen
> jussi.lahtinen at gmail.com:
>
> mFile = Open Null For Write
> Try Write #mfile, me As Object
> If Error Then
> Error.Raise("Unable to write object to memory," &
> Error.text)
> Endif
>
>
> This is not necessary for most cases as you can use Object.SizeOf().
>
>
> Jussi
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200425/46fc034b/attachment.html>
More information about the User
mailing list