Code: Select all
put "SELECT sKey,id,ord,radiscript,conditions,steps,labels,refs,notes FROM steps" into tSQL
put ExecuteSQL(tSQL) into tResult
put the number of lines of tResult into tLines
repeat with i=1 to tLines
put line i of tResult into tLine
put PrepForSteps(tLine) into tArray
dispatch "AddData" to group "DataGrid Steps" with tArray
end repeat
Code: Select all
function PrepForSteps tLine
set the itemdelimiter to tab
put the number of items of tLine into tItems
answer tItems & return & tLine
return tArray
end PrepForSteps
Thanks,
Larry