Don_Macaroni Posted February 3, 2009 Posted February 3, 2009 Hi, I'm breaking my brains over something that should be as easy as 123. I have a global text field where a user inputs a 'period-' or 'comma-' separated text in a custom dialog box. I then want to run a script that separates those values, eg. "456123.785412.255879.225788" and creates a new record for each of them. I used PatternCount(text, ".")+1 to have a variable for the loop, but how do I extract the actual values? As php explode and a while loop would do... Help appreciated.
Raybaudi Posted February 3, 2009 Posted February 3, 2009 Set variable ( $values ; Substitute ( global text field ; [ "." ; ¶ ] ; [ "," ; ¶ ] ) ] Loop Exit Loop if [ IsEmpty ( $values ) ] New Record/Request Set field [ yourTable::yourField ; GetValue ( $values ; 1 ) ] Set variable [ $values ; RightValues ( $values ; ValueCount ( $values ) - 1 ) ] End Loop
Recommended Posts
This topic is 5772 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now