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 / array vs. command str$

Author
Message
instinto criador
17
Years of Service
User Offline
Joined: 19th Dec 2006
Location:
Posted: 20th Nov 2008 00:18
Please, why that code don't run?. Thank you.

Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 20th Nov 2008 00:26
You can't make a variable name out of a string.
Since you already have an array a, why don't you just make erro an array as well?
That would solve everything


-> Oh, come on...
instinto criador
17
Years of Service
User Offline
Joined: 19th Dec 2006
Location:
Posted: 20th Nov 2008 00:36
Thanks!. But if was possible would be very good! don't?
pluto
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 20th Nov 2008 00:51 Edited at: 20th Nov 2008 00:58
The reason your code does not run is because of this line:

if a(x)=74 and "erro"+str$(y)=46

You were trying to compare a string with a number.

Try this:

instinto criador
17
Years of Service
User Offline
Joined: 19th Dec 2006
Location:
Posted: 20th Nov 2008 01:14
Ok, I already understood, thanks again!

Login to post a reply

Server time is: 2024-09-27 22:29:38
Your offset time is: 2024-09-27 22:29:38