Unwanted linebreaks in result of database query
Posted: Sat Apr 23, 2022 10:39 am
Hi Guys,
after a loooong time I have begun to play with Livecode again. So here is my question
:
The result of
comes with linebreaks in tmpResult, which split each record of the table into two lines. What I mean is something like this:
answer tmpResult
Or alternatively, if I throw each value of each record into an own variable, would this be insufficient regarding performance?
after a loooong time I have begun to play with Livecode again. So here is my question

The result of
Code: Select all
put "SELECT * FROM table1" into resultTable
put revDataFromQuery(, , gConID, resultTable) into tmpResult
answer tmpResult
This way I can't really work with repeat for each line l in tmpResult. Is there a way to prevent the linebreak within a record from a database table?R1Value1 R1Value2 R1Value3
R1Value4 R1Value5
R2Value1 R2Value2 ...
Or alternatively, if I throw each value of each record into an own variable, would this be insufficient regarding performance?
Code: Select all
put "SELECT qty FROM table1" into rQty
put "SELECT type FROM table1" into rType
put "SELECT symbol FROM table1" into rSymbol
put revDataFromQuery(, , gConID, rQty) into tmpQty
put revDataFromQuery(, , gConID, rType) into tmpType
put revDataFromQuery(, , gConID, rSymbol) into tmpSymbol