Hello,
Can somebody please help me ...
I need to fill-up static-fields in a static-temp-table. But I want to use the static-fields dynamically. E.g:
DEF TEMP-TABLE ttTemp
FIELD supplier AS CHAR
FIELD product AS CHAR
FIELD threatm AS CHAR
FIELD dm2005 AS DEC
FIELD dm2006 AS DEC
FIELD dm2007 AS DEC.
FOR EACH Supplier WHERE ... NO-LOCK:
CREATE ttTemp.
ASSIGN ttTemp.supplier = "supplier1"
ttTemp.product = "product x"
ttTemp.threatm = "Threatm x".
ASSIGN ttTemp.dm + STRING(Supplier.Year) = ttTemp.dm + STRING(Supplier.Year) * Supplier.ndeliver.
END.
Is it possible to achieve something like this (marked in red)? I'm using Progress 10.1B.
I would appreciate any help...
Thanks in advance.
Can somebody please help me ...
I need to fill-up static-fields in a static-temp-table. But I want to use the static-fields dynamically. E.g:
DEF TEMP-TABLE ttTemp
FIELD supplier AS CHAR
FIELD product AS CHAR
FIELD threatm AS CHAR
FIELD dm2005 AS DEC
FIELD dm2006 AS DEC
FIELD dm2007 AS DEC.
FOR EACH Supplier WHERE ... NO-LOCK:
CREATE ttTemp.
ASSIGN ttTemp.supplier = "supplier1"
ttTemp.product = "product x"
ttTemp.threatm = "Threatm x".
ASSIGN ttTemp.dm + STRING(Supplier.Year) = ttTemp.dm + STRING(Supplier.Year) * Supplier.ndeliver.
END.
Is it possible to achieve something like this (marked in red)? I'm using Progress 10.1B.
I would appreciate any help...
Thanks in advance.