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 Professional Discussion / String manipulation

Author
Message
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 7th Jun 2003 20:32
I have a function that returns a string. The string contains 3 numbers separated by a space. E.g:

134 5 890
1 464 609

The numbers vary from between 1 and 3 characters long. I want to write another function that takes this string and works out what each value is (somehow using the space as a cue to the start of the next number). I can't figure it out. Can anyone help?
Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 7th Jun 2003 21:19


Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 7th Jun 2003 21:56
Thanks Rob....you're a star!

BTW, How do I change the colour of the screen? I want to make it white, not black

Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Jun 2003 21:59
cls rgb(255,255,255)
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 7th Jun 2003 22:15
Cheers! Was using the INK command to no effect

Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 8th Jun 2003 00:35
INK is for changing the text colour / drawing colour for boxes / circles etc.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip

Login to post a reply

Server time is: 2026-07-11 22:24:47
Your offset time is: 2026-07-11 22:24:47