another simple one

degrande107
05-31-2002, 05:29 PM
this will probably be stupid easy, but how do i remove the last character from a string?

d_hadzima
05-31-2002, 05:33 PM
string = mid(string, 1, len(string) - 1)

BillSoo
05-31-2002, 05:44 PM
....or similarily:

string=left$(string,len(string)-1)

The "$" gives a slight speed bonus (around 5%?)

degrande107
05-31-2002, 05:45 PM
thanks

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum