‎2006 May 25 12:30 PM
Hi
i have a popup with a field to put a date but just the month and the year like this:
02.2006
know the user can put 1.2006 and the field accepts it, but i want to force the user to put 01.2006 and if he puts 1.2006 gives a error.
thanks
ricardo
‎2006 May 25 12:32 PM
len = strlen(p_date).
if len LT 7.
* display error.
endif.or
mon = p_date+0(2).
len = strlen(mon).
if len LT 2.
*display error
endif.Message was edited by: Chandrasekhar Jagarlamudi
‎2006 May 25 12:33 PM
‎2006 May 25 12:38 PM
Take the field as a string
var = str+2(1).
if var <> '.'.
MESSAGE E000 "Enter correctly".
endif.
‎2006 May 25 12:46 PM
hi
chk this out
data : str(7) value '2.2006'.
if str+1(1) = '.'.
concatenate '0' str into str.
endif.
write 😕 str.
plz reward if useful