saravanakumar
Member
Hi Everybody,
Kindly let me know why does the result of the below code is empty? It seems in all the below example if i create only one record with default value assigned to the INDEXed field than i am not getting the record displayed when i use BREAK BY option in FOR...EACH.
I am not sure if i am confusing myself or Progress confuses me...
Example 1:
Example 2:
Example 3:
Sorry for some very lengthy quotes. Thanks in advance.
Kindly let me know why does the result of the below code is empty? It seems in all the below example if i create only one record with default value assigned to the INDEXed field than i am not getting the record displayed when i use BREAK BY option in FOR...EACH.
I am not sure if i am confusing myself or Progress confuses me...
Example 1:
DEF TEMP-TABLE tt NO-UNDO
FIELD a AS INT
FIELD b AS INT
INDEX a a .
CREATE tt.
tt.a = 0.
tt.b = 2.
FOR EACH tt BREAK BY tt.a:DISP tt.END.
Example 2:
DEF TEMP-TABLE tt NO-UNDO
FIELD a AS LOGICAL
FIELD b AS INT
INDEX a a .
CREATE tt.
tt.a = NO.
tt.b = 2.
FOR EACH tt BREAK BY tt.b:
DISP tt.
END.
Example 3:
DEF TEMP-TABLE tt NO-UNDO
FIELD a AS CHAR
FIELD b AS INT
INDEX a a .
CREATE tt.
tt.a = "".
tt.b = 2.
FOR EACH tt BREAK BY tt.b:
DISP tt.
END.
Sorry for some very lengthy quotes. Thanks in advance.