[Stackoverflow] [Progress OpenEdge ABL] How to create a dynamic temp-table using ADD-NEW-FIELD(1st argument,'datatype') where 1st argument passed is a

Status
Not open for further replies.
M

Mani

Guest
I want to add a column to the dynamic temp table but it seems ADD-NEW-FIELD accepts the 1st argument to be a enclosed in quotes I want the flexibility of passing variable name as an argument to ADD-NEW-FIELD, eg.** hTable:ADD-NEW-FIELD ( v_setnum , 'INTEGER').**

DO WHILE v_setnum <= v_setmax :
IF v_setnum = 1 THEN
hTable:ADD-NEW-FIELD ( "PointLabel", "character").
hTable:ADD-NEW-FIELD ( v_setnum , 'INTEGER').
/*I get error for the above line as
Invalid datatype for argument to method 'ADD-NEW-FIELD'. Expecting
'character' (5442)
*/
v_setnum = v_setnum + 1.
END.

Continue reading...
 
Status
Not open for further replies.
Top