Combing first name and surname into a datagrid table
Posted: Tue Jun 13, 2017 12:45 pm
I have a sqlite database in which surnames and first names are in different columns. I want to populate a datagrid table such that the first name and surname are put into one datagrid column in that order, separated by a space. Is that possible? Can anyone suggest the script or a tip on how to do it?
Thank you for the answer or any suggestions.
Monty May
Code: Select all
repeat for each line i in tData
put item 1 of i into tArray[tCounter]["rsnum"]
put item 2 of i into tArray[tCounter]["surname"] -- I want to concatenate this line
put item 3 of i into tArray[tCounter]["firstName"] -- and this line will display "firstName SurName" in the DG
put item 4 of i into tArray[tCounter]["debtAmt"]
put item 5 of i into tArray[tCounter]["dateOpened"]
put item 6 of i into tArray[tCounter]["debtType"]
put item 7 of i into tArray[tCounter]["order"]
put item 8 of i into tArray[tCounter]["NextHrg"]
add 1 to tCounter
end repeat
set the dgData of grp "dgDefendants" to tArray
Monty May