copying formatted text from one field to another
Posted: Thu Apr 10, 2014 12:03 am
Hey all,
I have a text field in one stack called description. Within that field I have some formatted text and I wish to copy the contents of that field including the formatting/styles to a label in the data grid.
I have the following the script which copies the fields into an array and into my data grid
Trawling through the forums, I have found that I need to use the htmlText command to retain the formatting within the field. I've checked the dictionary for the syntax and I believe I need to replace the top line with the following code set the HTMLText of field "fld_description" to theDataA["label 2"] as Im trying to store everything in an array before I dispatch. However this doesn't work, intact the dispatch is empty.
Any pointers on how I can achieve this relatively simply?
I have a text field in one stack called description. Within that field I have some formatted text and I wish to copy the contents of that field including the formatting/styles to a label in the data grid.
I have the following the script which copies the fields into an array and into my data grid
Code: Select all
put fld "fld_description" into theDataA["label 2"]
put fld "fld_item_price" into theDataA["label 3"]
put fld "fld_qty" into theDataA["label 4"]
put fld "fld_line_price" into theDataA["label 5"]
dispatch "AddData" to group "PurchaseGrid" of stack "DataEntry" with theDataA
Any pointers on how I can achieve this relatively simply?