Monday 19 January 2009

Did you know - RList statements

You can capture the results of a Rlist statement into a variable.

Subroutine RList_Tip(Void)
Declare Function Exec_Rlist
cmd = "LIST BOOKS BY @ID F1 F2 F3"
type = "OI"
dFlag = 0 ; * debug flag
rslt = Exec_Rlist(cmd,"EXECUTE",type,dFlag)
Return

RSLT will be a field-mark-delimited list of the output. Note that there may be some other spurious characters that you might want to strip out.

No comments:

Post a Comment