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 / Help with implmenting LEN Command to Shorten Player name ?

Author
Message
DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 26th Sep 2011 20:14 Edited at: 26th Sep 2011 20:16
Hi,

I want to use the LEN command to shorten.

J.BUTTON to BUT
F.ALONSO to ALO

(J.BUTTON is a Variable which is a String.)

Where the first letter and . are ignored and the next three characters are taken.

Not sure what combination of LEN and other commands I need to help me.

Any one ? Help greatly recieved.. BTW I have searched forum but onlky explains eg. giving me J.BU for example....

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Sep 2011 20:24


DemonHill
18
Years of Service
User Offline
Joined: 20th Mar 2008
Location:
Posted: 26th Sep 2011 21:01 Edited at: 26th Sep 2011 21:12
Works a treat, many thanks

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 26th Sep 2011 21:25
this is another option using the DBpro core commands:

Login to post a reply

Server time is: 2026-07-10 08:05:19
Your offset time is: 2026-07-10 08:05:19