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 / sorry whats wrong with my code ?

Author
Message
Regis
16
Years of Service
User Offline
Joined: 19th Mar 2008
Location:
Posted: 4th Nov 2008 14:40
Sorry for my english.

[do
cdd=cdd2+20
cls
print cdd
loop]

I get cdd is 20, but not 20,40,60,80,and more
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 4th Nov 2008 14:44
The problem line is 'cdd = cdd2 + 20'

The bolded part should probably be 'cdd', not 'cdd2'.

Regis
16
Years of Service
User Offline
Joined: 19th Mar 2008
Location:
Posted: 4th Nov 2008 14:48
thank you
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 4th Nov 2008 14:53
Regis,

When using variables in order to increase them or do something to them and then display them later, or use them for some other important purpose later, you need to be careful to use the exact variable name.

Tom

Login to post a reply

Server time is: 2024-09-27 22:24:44
Your offset time is: 2024-09-27 22:24:44