I'm very new to this and trying to copy a method that already exists in a form. Wondering what the numbers represent to help understand what happening in each of these lines a little better.
Examples of where the numbers occur:
case ((temp[1] <> "") AND (temp[2] <> ""))
rowString = replacestr(temp[1], ",", ";") + " ID: " + temp[3]
case (temp[1] <> "")
rowString = replacestr(temp[1], ",", ";") + " ID: " + temp[3]
case (temp[2] <> "")
rowString = replacestr(temp[2], ",", ";") + " ID: " + temp[3]
endcond
insert(ret,1,rowString)
endif
endif
if strSelectedOrder == rowString then
OBSNOW("ORDERNUMBER",temp[3])
OBSNOW("CM ProvRefDatCre",temp[2])
OBSNOW("OrderInstr",temp[7])
OBSNOW("Priority",temp[5])
Temp would be an array and depending on the code, it would either be the record number of a row in the array or the field number in a single row in a record