dervaish Posted May 16, 2008 Posted May 16, 2008 hello i need some help/assistance to retrieve values in a value list. i know i can use valuelistitems function to get all the values at once. but what i want to do is to get 1 item at a time [using a loop] n then add it to a filed in a table. then get the 2nd item and add it to another field in a 2nd table and so on. for now i have around 50 items in the list and want to get each item individually and then add it to approperiate field in a table. [all this through a loop to add items to corresponding fields in different tables] thanx in advance for the help.
David Jondreau Posted May 16, 2008 Posted May 16, 2008 Set Variable[$list; ValueListItems(Get(FileName); "ValueListName") Set variable[$end; ValueCount($list)] Loop Set Variable[$counter; $counter +1] New Record/Request Set Field[ fieldName; GetValue($list;$counter)] Exit Loop If[$counter = $end] End Loop
dervaish Posted May 16, 2008 Author Posted May 16, 2008 thanx so very much DJ. worked perfectly. much appreciated.
Recommended Posts
This topic is 6039 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