September 7, 201015 yr Hi there I'm getting mad trying to do something (which would be very very easy in Java or PHP) in FileMaker. Here is the thing : I have a list of modules I get from a checkbox. This looks like this : AA BG BR SR1 SR2 ... And I would like to store each module in a tab (a variable with repetition in fact). If all module were written with 2 letters, that would be easier... but it's not the case ;o) Set Variable [$mod_list; Value:Global::G_Export_Module_List] Set Variable [$mod_list_tab; Value:""] Set Variable [$repet; Value:1] Loop //It's here I need your help ;-) End Loop Thank you in advance for your help ! F. [color:red]EDIT : Check the custom function "split" which might be helpful : http://www.briandunning.com/cf/45 Edited September 7, 201015 yr by Guest
September 7, 201015 yr I think you're looking for something like this. Set Variable [$mod_list; Value:Global::G_Export_Module_List] Set Variable [$mod_list_tab; Value:""] Set Variable [$repet; Value:1] Set Variable [$mod_Count; Value: ValueCount($mod_list)] Loop //It's here where I'm attempting to help ;-) Set Variable [$mod_list_tab[$repet]; Value:GetValue($mod_list; $repet)] Set Variable [$repet; Value:$repet + 1] Exit Loop If [$repet > $mod_Count] End Loop
September 7, 201015 yr Author Oh Thank you for the quick answer... I'm going to test that and I'll keep you posted of the result ! Cheers, F.
Create an account or sign in to comment