Appending Data to a scrolling field
Posted: Thu Mar 20, 2014 5:24 pm
I have a field where my user will type in information, and based on what they type, the information and mor info will be added to a scrolling field.
I have the information I want to be entered going into the scrolling field, but it keeps deleting what was there prior.
I had it working to some extent, but in creating a handler to deal with repeated operations, it now deletes the previously entered information, and replaces it.
The simple snippet above shows what I'm doing, but in the procHelpLs handler I actually pass several different lines of text through dataOutput a few times so that the information is placed into the field "dataOutputField" more like a terminal emulation.
Right now, with the code above, it keeps replacing the previous text. So at the end, the only line of text in "dataOutputField" is the last line sent.
Any help is greatly appreciated.
I have the information I want to be entered going into the scrolling field, but it keeps deleting what was there prior.
I had it working to some extent, but in creating a handler to deal with repeated operations, it now deletes the previously entered information, and replaces it.
Code: Select all
on procHelpLs
put "ls - lists all files and folders in a direcotry." into dataOutput
generateHelpTimers dataOutput
end procHelpLs
on generateHelpTimers helpText
get field "dataOutputField"
put cr & helpText & cr into it
wait 170 milliseconds with messages
put it into field "dataOutputField"
end generateHelpTimers
Right now, with the code above, it keeps replacing the previous text. So at the end, the only line of text in "dataOutputField" is the last line sent.
Any help is greatly appreciated.