CAsba.
What Klaus meant, here and there, and something you must pay attention to, is that without a certain amount of context there is no way to understand what issues you might have.
For example, I made a new stack and put this in a button:
Code: Select all
on mouseUp
set the itemdelimiter to tab
ask " Enter the work order number to be re-called (numerals only))"titled (fld "fieldboxtitle")
put it into tAnswer
#put tAnswer into fld "change"
#put the text of fld "text of fld "change"" into fld "arraydata"
#put the text of fld "text of tAnswer" into fld "arraydata"
put tAnswer into fld "arraydata" ## This put 500039 into arraydata
put the text of fld tAnswer into fld "arraydata"
end mouseUp
My stack had to have a field "boxTitle" as well as a field "arrayData", but there is no way I could have a "fld tAnswer" since that is not defined until after the user enters a number in the ask dialog.
And by the way, there is no filter to assure that only numbers are entered, but that is another story.
Anyway, I was able to put the result of the dialog into fld "arrayData", but the handler then stopped because there was no field with the name that the user (me) typed. The handler ran into what is known as a "runTime" error. LC does not know if an object is missing until it runs. This is in contrast toe a "compileTime" error, where syntax problems prevent LC from even being able to compile a script in the first place.
Bottom line, and I know you are still relatively new to LC, though your energy to learn and work is very satisfying, you have to ask yourself if what you are posting can be reasonably understood and tested by the others on this forum. Try to run what you post in a new stack. That will show you, for example, where certain referenced objects simply do not exist. That exercise alone might lead you to finding the errors. You might then post a modified handler that addresses the issues you think are tripping you up.
Keep at it!
Craig