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.

Newcomers DBPro Corner / about the "dim" and "array"

Author
Message
stan111111
21
Years of Service
User Offline
Joined: 9th Aug 2003
Location:
Posted: 11th Aug 2003 03:20
i know that the way to setup some veribles are...
dim a$(1) : dim b$(1)...
but is there a way to do something like...
dim a$(1) , B$(1)?

also... the save and load array... like this..
SAVE ARRAY "test", a$(1)
gives an error when i try to do this...
SAVE ARRAY "test", a$(1) , b$(1)
any ideas?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Aug 2003 05:27
regardless of size use a zero

SAVE ARRAY "test", a$(0)

stan111111
21
Years of Service
User Offline
Joined: 9th Aug 2003
Location:
Posted: 11th Aug 2003 07:20
ok, but for to save both a$ and b$ on one line of code?

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Aug 2003 07:30
stan111111
21
Years of Service
User Offline
Joined: 9th Aug 2003
Location:
Posted: 11th Aug 2003 09:18
is there a way to save more than one verible in a file?

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 11th Aug 2003 09:31
Yes - Open a file to write, write all your variables, then close the file.

Variables can be of mixed types, but must obviously read back in the same order.

TDK
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 11th Aug 2003 19:29
you must use dim before each array, but for just varaibles that you want as global you can use global a,b,c,d

You can't save more then 1 array at a time with the save array command, you can do it by writting a function to write to a file and not use the save array command.
CTP

Login to post a reply

Server time is: 2024-09-20 19:36:29
Your offset time is: 2024-09-20 19:36:29