Still not got this working...
Firstly, and this works, a field populated with data (taken from a datagrid) is put into the field arraydata.
The field arraydata is used to populate fields in a document, and then is put into a field that is created and named with the number of the document; this field is for the making of a duplicate of the document should it be ever needed. So far, so good.
Secondly, and this doesn't work, I test if the retrieval of the archived field can be used to make a duplicate copy of the document.
The user inputs the required document number, in this case, 500041. The system should put the data in the field 500041 into the field arraydata for populating the fields of the duplicate document.
The code is
Code: Select all
ask " Enter the work order number to be re-called (numerals only))"titled (fld "fieldboxtitle" of cd "template1")
put it into tAnswer
put the text of fld "text of tAnswer" into fld "arraydata"
tAnswer is 500041.
There is a field named 500041.
There is a field named arraydata.
The order number entered is 500041.
I have tried both suffixing and prefixing the number to avoid LC problems, but neither strategy worked.
I also suffered an unexpected and immediate shut down whilst experimenting with possible options (??!!??)