On Thu, 18 Sep 2008 07:19:16 -0700 (PDT), cmdolcet69 wrote:
I ahve the following code that need to trim off the last character
from a string
dim STR as string
If instr(STR <3 then
LTrim(STR)
THis code doesn;t work
I think the TRIM() function only gets rid of whitespace. Try the LEFT$()
function:
dim STR as string
STR= "STRING"
STR = LEFT$(STR,3)
HTH
--
ats@jbex
Boats an' tanks and planes, it's your game
Kings an' queens an' generals learn your name
I see all the innocents, the human sacrifice
And if death comes so cheap
Then the same goes for life!
The Clash - Tommy Gun