Let's see if I can make this 'as clear as mud'.
I have a temp-table with a structure similar to the following:
What I am trying to do, is set name, addr, city, state, zip, in a loop of sorts. But since they are not, and for this application, cannot, have extents, the best possible solution I have come up with is to use handles.
Then while in my loop I was hoping to use a procedure to set the handles dynamically.
I have created tt-table as a variable of type, handle. Currently I am getting the following 2 errors:
"Invalid handle. Not Initialized or points to a deleted object. (3135)"
"Cannot access the BUFFER-FIELD attribute because the widgest does not exist. (3140)"
Let me know if you need more information.
Any help would be greatly appreciated.
I have a temp-table with a structure similar to the following:
Code:
def temp-table tt-table no-undo
field name1 as char
field addr1 as char
field city1 as char
field state1 as char
field zip1 as char
field name2 as char
field addr2 as char
field city2 as char
field state2 as char
field zip2 as char.
What I am trying to do, is set name, addr, city, state, zip, in a loop of sorts. But since they are not, and for this application, cannot, have extents, the best possible solution I have come up with is to use handles.
Code:
def var name as handle no-undo.
def var addr as handle no-undo.
def var city as handle no-undo.
def var state as handle no-undo.
def var zip as handle no-undo.
Then while in my loop I was hoping to use a procedure to set the handles dynamically.
Code:
procecure set_handle:
name = tt-table:BUFFER-FIELD("name" + STRING(l-idx))
etc....
end procedure.
I have created tt-table as a variable of type, handle. Currently I am getting the following 2 errors:
"Invalid handle. Not Initialized or points to a deleted object. (3135)"
"Cannot access the BUFFER-FIELD attribute because the widgest does not exist. (3140)"
Let me know if you need more information.
Any help would be greatly appreciated.