Patti,
  Look at the ItemCnt function.  It returns the number of items in the CSL 
like:

Set var vListOfItems text
-- do some processing here to collect your selections from the listview into 
the variable vListOfItems

SET VAR vItems Integer = (ITEMCNT(.vListOfItems))

The value of vItems is 3

When you know the count, you can iterate through the list using the SSUB 
function


set var vCount integer = 1
Set var vItem text = null

While vCount < .vItems then
  set var vItem = (ssub(.vListOfItems, .vCount))
  -- do whatever you want with vItem here

 set var vCount = (.vCount + 1) {increment the count for the next item}

endwhile





----- Original Message ----- 
From: "Patti Jakusz" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Tuesday, June 14, 2011 1:40 PM
Subject: [RBASE-L] - Multicolumn Select in Var Lookup ListView


Hi,
I want to have a form in which a user can select a bunch of records, then I 
do some other processing with these records. I'm using 7.6.

So I put a Variable Lookup ListView Box on my form, and selected the option 
for Multicolumn select. When I show variables, Rbase has put the keys to all 
the selected records into my one variable, separated by commas, just like I 
had hoped.

But now I don't know how to use them. I'd maybe like to dump them in a 
temporary table, but I don't know what kind of syntax to use to get at all 
these different values for my variable.

Any help?
Thanks,
Patti Jakusz


Reply via email to