Hello,
I am using CR11 with Macola progression. I have a list account numbers which, for each number, I want to search through a list of notes and if it finds a matching number, display the note corresponding to the number. I have tested the strcmp line on it's own with a value of <>0 and it works but I cannot get the loop to work properly.
I get the error "a loop was evaluated more than the maximum number of times allowed." It seems to not go to the next record and just evaluates the current record always. I have changed the while condition to = "" and it exits but I get the value of True instead of my strcmp value. I have also tried for the while condition not onlastrecord but I still get the error above. Removing the Not exits the loop and the value True shows again.
If the loop needs an array, I am not very familiar with them so I would need help in preparing that as well.
do (
if strcmp({@MergeAccount},{SYSNOTES.SYS_NOTE_NAME_VALUE},1) = 0 then {SYSNOTES.SYS_NOTE_1}
next({SYSNOTES.SYS_NOTE_NAME_VALUE})
)
while ({SYSNOTES.SYS_NOTE_NAME_VALUE} <> "")
Thanks for any help
BB
I am using CR11 with Macola progression. I have a list account numbers which, for each number, I want to search through a list of notes and if it finds a matching number, display the note corresponding to the number. I have tested the strcmp line on it's own with a value of <>0 and it works but I cannot get the loop to work properly.
I get the error "a loop was evaluated more than the maximum number of times allowed." It seems to not go to the next record and just evaluates the current record always. I have changed the while condition to = "" and it exits but I get the value of True instead of my strcmp value. I have also tried for the while condition not onlastrecord but I still get the error above. Removing the Not exits the loop and the value True shows again.
If the loop needs an array, I am not very familiar with them so I would need help in preparing that as well.
do (
if strcmp({@MergeAccount},{SYSNOTES.SYS_NOTE_NAME_VALUE},1) = 0 then {SYSNOTES.SYS_NOTE_1}
next({SYSNOTES.SYS_NOTE_NAME_VALUE})
)
while ({SYSNOTES.SYS_NOTE_NAME_VALUE} <> "")
Thanks for any help
BB