BaaN Bandit
5th August 2004, 12:10
I am using BaaN ERP Vb.
I have created a custmised Session with a field that is 11 characters long.
i would like to validate the field when user enters data so that they can only enter 4 Numeric Characters, followed by 7 Alpha Characters.
I have failed to do this through changing the domain.
Is there a possible way of doing this through the Program script.

Help Much Appriciated as i am fairly new to BaaN Scripting.

THanks

Jit. :confused:

malutz
5th August 2004, 13:21
Hej,

I have no system to try for the moment, but i guess that this should work:


domain tcmcs.str11 origin
domain tcmcs.str4 alpha
domain tcmcs.str7 num

alpha = origin(1;4)
num = origin(5;7)

if isdigit(num) = false or
val(alpha) <> 0
message("input.error")
set.input.error()
endif

BaaN Bandit
5th August 2004, 15:17
Thanks dood...

Will try it out and let you know if i come across any problems using this..

Nice one :)

Jit.