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 / I need help saving 2 arrays

Author
Message
Lord Danath
21
Years of Service
User Offline
Joined: 29th Aug 2003
Location:
Posted: 29th Aug 2003 21:18 Edited at: 29th Aug 2003 22:37
for a strange reason, I can´t save two arrays at the same time. It says that the array´s name is not correct. could you help me plz?

It is time to say hello...
HELLO
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 29th Aug 2003 21:24
You are useing "DIM ArrayName(Array Dimensions)" to create the array elsewhere in your code arn't you?
Lord Danath
21
Years of Service
User Offline
Joined: 29th Aug 2003
Location:
Posted: 29th Aug 2003 22:16
Yes, exactly. Why?.

It is time to say hello...
HELLO
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 30th Aug 2003 06:04
When I copy the code you posted in to dbpro the arrays haven't been dimed. I get an error similar to yours. When I dimed the arrays the code worked. I assumed you had dimed them all elsewhere but asked just incase.

I can't see anything wrong with the bit of code you posted. Perhaps post more of the code there might be an error elsewhere.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 30th Aug 2003 21:34
just put a 0 in the array index when you save!
save array "salvado",salvado(0)
save array "salvado2",texto$(0)

you have to do that when loading arrays aswell


Lord Danath
21
Years of Service
User Offline
Joined: 29th Aug 2003
Location:
Posted: 3rd Sep 2003 22:34
Ok, it worked. Thanks a lot

It is time to say hello...
HELLO

Login to post a reply

Server time is: 2024-09-20 21:34:49
Your offset time is: 2024-09-20 21:34:49