Forums › Forums › SIMPOL Programming › printform1 error # 5
- This topic has 1 reply, 1 voice, and was last updated 11 years ago by Jean Vallee.
- AuthorPosts
- April 23, 2013 at 4:58 pm #203Jean ValleeParticipant
I have been trying to debug a report for over 24 hours now. I keep getting an error 5 – Value in use when the printform1.sma gets to a printform1text item – itemid 101. I understand you must have unique printnames for every printform1.addcontrol. I am using both a 6 digit random number (stringed) followed by a while printform1.nameinuse(controlname) to trap any errant duplicates. If I find one, I add 1 to the number generated, string it and use that as the printname. Despite all that, I’m still getting the error. I tried modifying the library to give me more information (the watch window is too small to display everything) but that was a no go. This is happening at the end of a 1 page report. I have a 4 page report that works fine and sails thru the code when it gets to itemid 101. Anyone else working with printform1 this way and have any ideas? I’m about at the end of my rope. Jean Vallee
April 24, 2013 at 12:30 pm #1484Jean ValleeParticipantApparently the IDE didn't like the numbering scheme I was using for
printform1line controls. I was trying to keep track the # of lines and
text separately for debugging purposes.As soon as I went back and just used a straight number series
(STR(VAL(pname,ns)+1,"000000",ns) for all printnames, it worked fine.Jean Vallee
- AuthorPosts
- You must be logged in to reply to this topic.