Hi all,
I have two procedures updating,creating and deleting records from a specific temp-table.
The second procedure (here a simple example called p2.p) is invoked inside of a for each of that TT, and, in some cases a record is inserted.
With the by option, the for each doesn't read the record inserted by p2, without by it does!
Is there some workaround to "force" the reading of this record by the for each, changing only the p2.p
? (Due to license issues, I cannot change the p1.p)
TIA.
Eder.
/*p1.p*/
def new shared temp-table tt no-undo
field codigo as int.
create tt.
assign tt.codigo = 1.
create tt.
assign tt.codigo = 3.
for each tt by tt.codigo:
message tt.codigo
view-as alert-box info buttons ok.
if tt.codigo = 1 then
run p2.p.
end.
/*End p1.p*/
/*p2.p*/
def shared temp-table tt no-undo
field codigo as int.
create tt.
assign tt.codigo = 2.
/*end p2.p*/
I have two procedures updating,creating and deleting records from a specific temp-table.
The second procedure (here a simple example called p2.p) is invoked inside of a for each of that TT, and, in some cases a record is inserted.
With the by option, the for each doesn't read the record inserted by p2, without by it does!
Is there some workaround to "force" the reading of this record by the for each, changing only the p2.p
TIA.
Eder.
/*p1.p*/
def new shared temp-table tt no-undo
field codigo as int.
create tt.
assign tt.codigo = 1.
create tt.
assign tt.codigo = 3.
for each tt by tt.codigo:
message tt.codigo
view-as alert-box info buttons ok.
if tt.codigo = 1 then
run p2.p.
end.
/*End p1.p*/
/*p2.p*/
def shared temp-table tt no-undo
field codigo as int.
create tt.
assign tt.codigo = 2.
/*end p2.p*/