Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / saving array as type

Author
Message
fatbiffa
23
Years of Service
User Offline
Joined: 15th Jan 2003
Location:
Posted: 12th Feb 2003 12:55
i can SAVE ARRAY with a simple 1d array, but saving an array set up as "dim array() as t" gives ARRAY TYPE INVALID

any clues?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 12th Feb 2003 13:13
you can't say user defined typed arrays...
support might be added for this later, but i wouldn't count on it for a good while.

when you want to save these arrays you'll have to do it manually with the File commands - which is very very long winded but quite simple

only problem is you can't do it without making the function specifically, unless you set the type within a sub .dba which isn't compiled so it can search through for the type setup

if you use a creative setup of the string command, or binary operators << and >> you can setup the elements, and search parameters within the dba (or whatever the #included file is)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?

Login to post a reply

Server time is: 2026-07-06 11:38:13
Your offset time is: 2026-07-06 11:38:13