Bryan - Gendev
Programmer
I want to cut out unneeded processing in a 15000 record table.
I am needing to check whether any one of five fields has been changed in my Import routine using a tab delimted txt file.
I import the file to an import dbf table and need to check against the original table. temp3
Simplistically I have
I tried a comparison
if any of the myn variables don't match the myo variables I need to record the changes as doit = .t.
In some cases the comparison is against a myo variable of ''. The compariosn fails and doit stays at .f.
Is there a stronger test I can apply please?
GenDev
I am needing to check whether any one of five fields has been changed in my Import routine using a tab delimted txt file.
I import the file to an import dbf table and need to check against the original table. temp3
Simplistically I have
Code:
myntopic = Alltrim(Import.Topic)
myncaption = Alltrim(Import.Caption_1)
myndesc = Alltrim(Import.Descript_1)
mynref = Alltrim(Import.Reference)
myotopic = Alltrim(TEMP3.xname)
myocaption = Alltrim(TEMP3.Caption)
myodesc = Alltrim(TEMP3.Descript)
myoref = Alltrim(TEMP3.Reference)
I tried a comparison
Code:
If myntopic#myotopic Or;
myncaption#myocaption Or;
myndesc#myodesc Or;
myodesc#myndesc Or;
mynref#myoref
doit = .T.
endif
If doit = .t.
etc
etc
endif
if any of the myn variables don't match the myo variables I need to record the changes as doit = .t.
In some cases the comparison is against a myo variable of ''. The compariosn fails and doit stays at .f.
Is there a stronger test I can apply please?
GenDev