MauditOstie
Member
Hi Peggers!
I'm having a hard time about preproc issu.
i have a Program A.p wich does a buffer-compare.
therefore i have a list of fields store in a variable.
i need to do something like this:
PROG A.p
Do i = 1 to num-entries(List):
{proga.i &TableName = testtable
&FieldName = ENTRY(i,List)}
end.
Proga.i
Create Newtable
assign NewTable.field = STRING({&FieldName})
NewTable.table = STRING({&TableName})
NewTable.Value = ??????
?????? -> I got no idea how to use the content of both variable to create the testtable.Field assignation...
i've tried a cpl such as '{&TableName}'.{&FieldName} but it gives me an error saying "Could not understant after "NewTable.Value = testable"'
witch means i got the "table" usage right but can't get the field to work...
Anyone got an idea?
Thanks
Rob
I'm having a hard time about preproc issu.
i have a Program A.p wich does a buffer-compare.
therefore i have a list of fields store in a variable.
i need to do something like this:
PROG A.p
Do i = 1 to num-entries(List):
{proga.i &TableName = testtable
&FieldName = ENTRY(i,List)}
end.
Proga.i
Create Newtable
assign NewTable.field = STRING({&FieldName})
NewTable.table = STRING({&TableName})
NewTable.Value = ??????
?????? -> I got no idea how to use the content of both variable to create the testtable.Field assignation...
i've tried a cpl such as '{&TableName}'.{&FieldName} but it gives me an error saying "Could not understant after "NewTable.Value = testable"'
witch means i got the "table" usage right but can't get the field to work...
Anyone got an idea?
Thanks
Rob