mvanta
19th May 2008, 14:15
Hello all!I face the following problem,
On a form I have a field that will be field with values of the type "1234L".
Tha is 4 numbers and a letter.
What I need to do is to get only the 4 numbers and then use it.
Please advice.
Thank you.

george7a
19th May 2008, 14:37
Use ";" to define how many characters you want to cut.

var.name4 = var.name(1;4) | as a string
var.num = lval(var.name(1;4)) | as a long

I hope it helps,

- George

mvanta
19th May 2008, 14:40
I will try it. Thanx a lot.