Brien

 

Not sure what you are doing and there may be better ways of achieving the
desired functionality, however you need to look at the following functions
to achieve what you ask.

 

StrStr - Finds string/char in a string

Substr - Returns a string from a string

 

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Brien Dieterle
Sent: 22 September 2008 18:51
To: [email protected]
Subject: split a field and loop on each piece

 

** 

Hello list,  here's another one for ya.

I'm working with field 112 on a form, that may contain one userID, or it
might contain a bunch (like 'user1'; 'user2'; 'user3'), etc.

I want to loop over all of these records, and then loop on each userID
within field 112 (loop in a loop?) and do something with the UserID (In this
case, add the user to a group)

I've done table looping before, but I have no idea where to begin to loop
over a split field.

First of all, how would I split this field into pieces (individual userIDs)
and then act on each?  I've looked through the functions and nothing seems
equivalent to unix's "cut" command for pulling a field based on a delimiter,
nor a way to keep repeating an action until the field is processed.  I am
strongly considering just abandoning the Field 112 anyway, and using an
entire form just for storing the UserID to Parent.  Then at least I can just
loop over that form and forget about the field splitting...

Thanks for any ideas.

Brien

__Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
html___ 


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to