Maclurv Posted November 21, 2015 Posted November 21, 2015 I'm using repeating Variables to use with finding applicable records to use and then print using a loop. I'm having a problem with the variable I use in the find to pick up the second repetition of a variable. So it steps previous to these, $$PrescriberID and $$PrescriberID[2] exist as seen in the Dataviewer as do the two cases for $$ClientID. But in using the debugger, $FindHCP and $FindClient keep being set with the first instance, not the second on the second go through when $LoopCounter is 2. Why isn't this working? Thanks for any help you can provide. Pat
comment Posted November 21, 2015 Posted November 21, 2015 (edited) The GetRepetition() function works with repeating fields, not with repeating variables (that aren't really repeating). Instead of : GetRepetition ( $$variable ; $counter ) use: $$variable[$counter] Edited November 21, 2015 by comment
Maclurv Posted November 21, 2015 Author Posted November 21, 2015 Thank you! I did not know that, and it worked, so I appreciate the information. Pat
Recommended Posts
This topic is 3357 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