Chr := 'A';
EVALUATE(AsciiValue,FORMAT(Chr,0,'<NUMBER>'));
IF AsciiValue >= 65 AND AsciiValue <= 74 THEN
RETURN Group1
ELSE IF AsciiValue >= 75 AND AsciiValue <= 83 THEN
Return GROUP2
ELSE IF AsciiValue >= 84 AND AsciiValue <= 90 THEN
Return GROUP3;
ELSE ERROR('Wrong character %1', Chr);
Chr := 'A';
EVALUATE(AsciiValue,FORMAT(Chr,0,'<NUMBER>'));
IF AsciiValue >= 65 AND AsciiValue <= 74 THEN
RETURN Group1
ELSE IF AsciiValue >= 75 AND AsciiValue <= 83 THEN
Return GROUP2
ELSE IF AsciiValue >= 84 AND AsciiValue <= 90 THEN
Return GROUP3;
ELSE ERROR('Wrong character %1', Chr);
hi Landlord
but this grouping thing is dynamic
how do i filter in records
thx
I am not sure that I completely understand your question.
Can you post a couple of rows from your table and explain in more details what you want to accomplish?
Comments
Chr := 'A';
EVALUATE(AsciiValue,FORMAT(Chr,0,'<NUMBER>'));
IF AsciiValue >= 65 AND AsciiValue <= 74 THEN
RETURN Group1
ELSE IF AsciiValue >= 75 AND AsciiValue <= 83 THEN
Return GROUP2
ELSE IF AsciiValue >= 84 AND AsciiValue <= 90 THEN
Return GROUP3;
ELSE ERROR('Wrong character %1', Chr);
hi Landlord
but this grouping thing is dynamic
how do i filter in records
thx
Can you post a couple of rows from your table and explain in more details what you want to accomplish?
Thanks.
SETFILTER(StartLetter, '..%1', SearchLetter);
SETFILTER(EndLetter, '%1..', SearchLetter);