Bruce:
Perhaps one of the enhancments I'll make to the REXX language is a scriptable query similar to SQL.
It'd be very restricted, but it may work out nice... AND, don't expect this to be in v4. Maybe v4.1 and up. Still much to do...
-Peanut
i.e.
sector_number = 555 /* pick a number, any number */
/* Prepare statement */
query = ATTAC_Query_Prepare("select s.info, s.warp_cnt from Sector s where s.ID = " || sector_number)
IF query = -1 THEN DO
call ZocMsgBox("Error in statement!")
exit
END
/* total_records
should be 1, but... */
total_records = ATTAC_Query_Record_Count(query)
DO record = 1 to total_records
info = ATTAC_Query_Get_Col_Data(query, 1)
warp_cnt = ATTAC_Query_Get_Col_Data(query, 2)
END