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 / Problem with #

Author
Message
RoyalBlood
15
Years of Service
User Offline
Joined: 8th Apr 2009
Location: Stuck in this box!
Posted: 7th May 2009 07:02
I was trying to use this code:

and it keeps saying something about the parameters not being right. Am I not allowed to use text for # or something?

AMPConcepts.webs.com
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 7th May 2009 07:35 Edited at: 7th May 2009 07:41
the default type for # is float (real number) so if you haven't declared:

difficulty# as string

it will expect a real number (and will accept an integer, but not a string!).

btw, whatever you do, if you're using both difficulty$ and difficulty# in your app, remember that they are completely different and separate variables holding their own values. ie, they are not interchangable.

for more info, check Principles, then Data Types & Variables from the Main Menu of the help files.


Login to post a reply

Server time is: 2024-11-24 08:19:04
Your offset time is: 2024-11-24 08:19:04