Page 1 of 1

ClipLeft(string,int) and ClipRight(string,int)

Posted: Wed Apr 20, 2011 9:55 am
by DoubleDutch
This would really be handy:

string$=ClipLeft(string$,int=1) would cut 'int' characters from the left of string$

Effectively:

Code: Select all

string$=Right(string$,len(string$)-int)
string$=ClipRight(string$,int=1) would cut 'int' characters from the right of string$

Effectively:

Code: Select all

string$=Left(string$,len(string$)-int)

Re: ClipLeft(string,int) and ClipRight(string,int)

Posted: Wed Apr 20, 2011 12:22 pm
by Little John
DoubleDutch wrote:This would really be handy:

string$=ClipLeft(string$,int=1) would cut 'int' characters from the left of string$

Effectively:

Code: Select all

string$=Right(string$,len(string$)-int)
Or

Code: Select all

string$ = Mid(string$, int+1)
:)

Regards, Little John

Re: ClipLeft(string,int) and ClipRight(string,int)

Posted: Wed Apr 20, 2011 2:50 pm
by DoubleDutch
Yep, I just had the ClipLeft because of ClipRight. ;)