Why doesn't this work ?
I checked it in COMMAND WINDOW --------------- IT WORKS (keeps the indexing)
I checked every step-------------------------- IT WORKS (keeps the indexing)
I then run the same code in a form in a TextBox.Init --- IT Loses the INDEXING AND SO FAILS THE SEEK
Why is it so ?
Appreciate any advice
John Fox
Sydney, Australia
I checked it in COMMAND WINDOW --------------- IT WORKS (keeps the indexing)
I checked every step-------------------------- IT WORKS (keeps the indexing)
I then run the same code in a form in a TextBox.Init --- IT Loses the INDEXING AND SO FAILS THE SEEK
Code:
SELECT patient_episodes
SET ORDER TO pt_episode
SET ORDER TO
MESSAGEBOX("DBF() is") <--- checks name and is OK
MESSAGEBOX(DBF()) <--- checks name and is OK
MESSAGEBOX("oGlobal.prop1 is ") <--- this is OK
MESSAGEBOX(oGlobal.prop1) <--- this is OK
GO top <--- not necessary but is OK
MESSAGEBOX("cdx(1) is") <--- this is OK in Command Window
MESSAGEBOX(cdx(1)) <--- this is OK in Command Window
but loses index when run in Form Code
SET EXACT OFF
SEEK ALLTRIM(oGlobal.prop1) <--- works in Command Window not in Form Code (because of lost index)
MESSAGEBOX(FOUND()) <--- ditto
Why is it so ?
Appreciate any advice
John Fox
Sydney, Australia