Skip to content

printform1 error # 5

Forums Forums SIMPOL Programming printform1 error # 5

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #203
    Jean Vallee
    Participant

    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

    #1484
    Jean Vallee
    Participant

    Apparently 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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.