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 / need HELP!

Author
Message
mesaratz
17
Years of Service
User Offline
Joined: 27th May 2007
Location: UK
Posted: 13th Mar 2009 16:35
i am trying to write a program that will do random numbers and them print them in a text area....

to use a text command i have to make the random number in to a str
with ton$=strĀ£(ton)
(ton is the random number) i then have to add the next part to it ie cost per ton with something like cost = ton *2000....
then (hope you are still with me on this LOL)
i do the same thing with the cost ie. cost$=str$(cost)
BUT when i use the text command again i get 2e5 +00D
how can i just get it to just put in the 00000 instead of the e5 any help on this would be great.
as you can see i am new to programing LOL

many thanks

John
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 18th Mar 2009 02:21
Can you post the exact code you're using (in a code box)?



mesaratz
17
Years of Service
User Offline
Joined: 27th May 2007
Location: UK
Posted: 25th Mar 2009 02:04
sorry i seem to have sorted out the problem but thanks any way

Login to post a reply

Server time is: 2024-11-25 10:37:48
Your offset time is: 2024-11-25 10:37:48