Getting started with datagrid
Posted: Fri Jun 19, 2009 2:27 am
I'm trying out the datagrid for the first time. I want to display rows of numeric results and have encountered a trivial (I suspect) problem.
If I use the following lines of code to place two rows of data in my datagrid, I end up overwriting the first line with the second. I thought that by appending the line with 'return' I would end that line and write the second dgtext to the next line.
set the itemDelimiter to tab
put false into pFirstLineContainsHeaders
set the dgtext of group "datagridOutput" to "Saturation Conditions" & tab & empty & tab & "Liquid" & tab & "Vapor" & return
set the dgtext of group "datagridOutput" to "Pressure" & tab & "(bar)" & tab & DisplayOutputValue(Psat) & tab & DisplayOutputValue(Psat) & tab & return
Using this method to write to dgtext, how can I force the second text to write to the line below?
Thanks in advance...pwr
If I use the following lines of code to place two rows of data in my datagrid, I end up overwriting the first line with the second. I thought that by appending the line with 'return' I would end that line and write the second dgtext to the next line.
set the itemDelimiter to tab
put false into pFirstLineContainsHeaders
set the dgtext of group "datagridOutput" to "Saturation Conditions" & tab & empty & tab & "Liquid" & tab & "Vapor" & return
set the dgtext of group "datagridOutput" to "Pressure" & tab & "(bar)" & tab & DisplayOutputValue(Psat) & tab & DisplayOutputValue(Psat) & tab & return
Using this method to write to dgtext, how can I force the second text to write to the line below?
Thanks in advance...pwr