How do we know the Length of numeric field with decimal plac

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: How do we know the Length of numeric field with decimal

Post by khurshid.arshad »

Dear pierrew;

Reference of last post from Gregory, he mentioned that use value alphanumeric for Latitude variable. If we use alphanumeric then syntax is:

PROC GLOBAL
Numeric decimalPlace, Nlength;

PROC LATITUDE

decimalPlace = poschar(".",$);
if decimalPlace<>3 then
errmsg ("Latitude is not correct. Reenter");
reenter;
else
Nlength=length(strip($));
if Nlength<>8 then
errmsg ("Latitude length is not correctd");
$="";
reenter;
else
endif;
endif;
Regards.
Post Reply