I am sure this is something simple, I have a form with 2 table frames on it. The main tableframe is my current stock and the other shows last years stock. The tables are not linked nor are they keyed. I wish to synchronize the 2 tables so that I can read the value of a product from last year. Presently I can copy the field value manually, click in the field of the 2nd table press ctrlZ, ctrlV and locate the product. I can then maunally enter the values accordingly. I have tried to automate this using the following code in the doubleclick event on the part number field in the main tableframe but I cannot get the locate to work.
var
Frame uiobject
PartRef string
endvar
Frame.attach(OldStock);Name of 2nd tableframe
PartRef =self.value
Frame.moveto()
view(PartRef);check that variable has been assigned
Locatepattern("PartNO",PartRef);**doesn't locate variable**
CurrentStock.moveto(); name of main tableframe
var
Frame uiobject
PartRef string
endvar
Frame.attach(OldStock);Name of 2nd tableframe
PartRef =self.value
Frame.moveto()
view(PartRef);check that variable has been assigned
Locatepattern("PartNO",PartRef);**doesn't locate variable**
CurrentStock.moveto(); name of main tableframe