LindaRichard
Programmer
I use the following code to scatter a series of
records for a view I created from a larger table ar_raw
PUBLIC giNberofRawToKeep
select tmp_monraw
giNberofRawToKeep=RECCOUNT()
PUBLIC ARRAY gmRawToKeep(giNberofRawToKeep)
GO top
FOR t=1 TO giNberofRawToKeep
SCATTER NAME gmRawToKeep(t)
SKIP 1
NEXT t
I then perform some calculations that modify the values
in ar_raw. Sometimes I need to reset these values.
So I have the following code. My problem is referencing
a specific field to search on it
SELECT ar_raw
FOR t=1 TO giNberofRawToKeep
&&can't figure out how to reference the field argonraw in the scattered variable
LOCATE FOR ar_raw.argonraw=gmRawToKeep(t).argonraw
IF FOUND()
gather NAME gmRawToKeep(t)
endif
NEXT t
I have used table buffering before but in this specific
case I simply want to search full records and restore
them my self.
Thanks for your help.
Linda
records for a view I created from a larger table ar_raw
PUBLIC giNberofRawToKeep
select tmp_monraw
giNberofRawToKeep=RECCOUNT()
PUBLIC ARRAY gmRawToKeep(giNberofRawToKeep)
GO top
FOR t=1 TO giNberofRawToKeep
SCATTER NAME gmRawToKeep(t)
SKIP 1
NEXT t
I then perform some calculations that modify the values
in ar_raw. Sometimes I need to reset these values.
So I have the following code. My problem is referencing
a specific field to search on it
SELECT ar_raw
FOR t=1 TO giNberofRawToKeep
&&can't figure out how to reference the field argonraw in the scattered variable
LOCATE FOR ar_raw.argonraw=gmRawToKeep(t).argonraw
IF FOUND()
gather NAME gmRawToKeep(t)
endif
NEXT t
I have used table buffering before but in this specific
case I simply want to search full records and restore
them my self.
Thanks for your help.
Linda