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.

DarkBASIC Discussion / Need a snippet

Author
Message
Blazer
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 8th Apr 2003 05:16
I need a string that dose somthing like this:

Data$="5 0's-the number of characters in:" object position x

so if you were at 45 it would look like this:
Data$=00045

at -7 it would be:
Data$=-00007

plese help
As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 8th Apr 2003 05:45 Edited at: 8th Apr 2003 05:54
This function maybe what you're after:



Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Blazer
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 8th Apr 2003 06:29
thanks for the help, but whenever I put a variable in it like, object position, it give a strange error messege

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
Hell IVIonkey
23
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 8th Apr 2003 07:18
...which is?
Blazer
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 9th Apr 2003 02:03 Edited at: 9th Apr 2003 02:03
SNATAX ERROR. PARAMITERS DIFFER BETWEEN FUNCTION CALL AND DECLARATION

I didn't quit know were to put them so I put NumberString(i) in the loop and the fuction part at the end with the other functions

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4

Login to post a reply

Server time is: 2026-06-11 15:09:19
Your offset time is: 2026-06-11 15:09:19