Dr. Robert: Give this a shot, hope it helps.
(best viewed in courier new font )
--file: snip_process_listVariable.rmd
--crea: 2026-06-15
--auth: bachitiea
------------------------------------------------------------------perspective
--
{A list variable has been generated from a CHOOSE command. Use SLOCI
and SSUB
functions to run a series of reports keyed to this list from within a
WHILE
loop. Allow for any number of items in the list variable. }
-------------------------------------------------------------show prep
.......
CLS ; SET ESCAPE ON
-------------------------------------------------------------variables
.......
{The item list formerly known as vselect (ILFKAV). This can be any
length }
SET VAR vsnip_itemList TEXT = NULL
{A generic report item variable }
SET VAR vsnip_reportItem TEXT = NULL
{The number of list items (will be comma-count plus 1) }
SET VAR vsnip_itemCount INTEGER = NULL
{WHILE loop counters }
SET VAR vsnip_counter_step INTEGER = NULL
SET VAR vsnip_counter_max INTEGER = NULL
-------------------------------------------------------------show time
.......
SET VAR vsnip_itemList TEXT = (yellow,red,magenta,blue)
SET VAR vsnip_reportItem TEXT = NULL
SET VAR vsnip_itemCount INTEGER = ((SLOCI(.vsnip_itemlist,',',0)) + 1
)
SET VAR vsnip_counter_step INTEGER = 1
SET VAR vsnip_counter_max INTEGER = .vsnip_itemCount
------------------------------------------------------------while loop
.......
WHILE vsnip_counter_step <= .vsnip_counter_max THEN
{If you prefer a different delimiter, use SSUBCD. }
SET VAR vsnip_reportItem =
(SSUB(.vsnip_itemList,.vsnip_counter_step))
{Do your report thing here where your report name or whatever is
indicated by
the value of vsnip_reportItem }
SET VAR vsnip_reportItem = NULL
SET VAR vsnip_counter_step = (.vsnip_counter_step + 1 )
ENDWHILE
--------------------------------------------------------------cleanup
........
LABEL cleanup
CLEAR VAR vsnip_%
------------------------------------------------------------------end
process --
LABEL endProcess
RETURN
One car ahead of you on the crazy train, Bruce
Bruce A. Chitiea
SafeSectors, Inc.
1142 S Diamond Bar Blvd # 442
Diamond Bar CA 91765-2203
[email protected]
(909) 238-9012 m
------ Original Message ------
From "Dr. Robert Rugilo" <[email protected]>
To "RBASE-L" <[email protected]>
Date 6/15/2026 5:36:02 PM
Subject [RBASE-L] - report printing from a list
I have a total mental block from the most basic command and I just need
someone to help me before I commit myself into a insane facility.
I have a variable (vSelect) which its, a list generated from a choose
command the variable looks like this yellow, red, magenta, blue
So, I need to print a report which only will print those categories,
for example
Print myreport where colors in (.vselect) (of course it's wrong but I
cannot remember how to address a simple variable with values separated
by a comma. (I know that I must surround with parenthesis but I fail to
remember how I have done this a 100's of time in the far
past....sooooooo help!!!!
Thank you guys for any hint or help that you can give me
Robert Rugilo
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/rbase-l/ce6ff321-6cce-48ea-8467-8d739714e3a1n%40googlegroups.com
<https://groups.google.com/d/msgid/rbase-l/ce6ff321-6cce-48ea-8467-8d739714e3a1n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/rbase-l/emdccbb1e5-5be9-4c38-8bd3-d8daa7d18ced%40safesectors.com.