The following Array is giving me an error - 'The array must be subscripted. For example Array '
NumberVar Array ST := [1,21,31];
NumberVar Array ND := [2,22];
NumberVar Array RD := [3,23];
NumberVar Array DD := Day({DATAEXAM.APPTSTART});
StringVar DateRem := ToText({DATAEXAM.APPTSTART}, "MMMM"
+""+ ToText({DATAEXAM.APPTSTART}, "YYYY"
;
If DD in ST then ToText(DD,0) + "St" + DateRem else
If DD in ND then ToText (DD,0) + "Nd" + DateRem else
IF DD in RD then ToText (DD,0) + "Rd" + DateRem else
ToText (DD,0) + "Th" + DateRem;
This is my first attempt at an array and I don't know where to start. Basicly its meant to format the day of a date field as '1st', '2nd', '3rd' etc... So if anyone could explain why Im getting this error or any ideas on a better way formating the day it would be much appreciated. thanks
NumberVar Array ST := [1,21,31];
NumberVar Array ND := [2,22];
NumberVar Array RD := [3,23];
NumberVar Array DD := Day({DATAEXAM.APPTSTART});
StringVar DateRem := ToText({DATAEXAM.APPTSTART}, "MMMM"
If DD in ST then ToText(DD,0) + "St" + DateRem else
If DD in ND then ToText (DD,0) + "Nd" + DateRem else
IF DD in RD then ToText (DD,0) + "Rd" + DateRem else
ToText (DD,0) + "Th" + DateRem;
This is my first attempt at an array and I don't know where to start. Basicly its meant to format the day of a date field as '1st', '2nd', '3rd' etc... So if anyone could explain why Im getting this error or any ideas on a better way formating the day it would be much appreciated. thanks