Rocket U2 | UniVerse & UniData

 View Only
  • 1.  Too many constants?

    Posted 03-27-2023 18:02

    Our ERP vendor is suggesting that the following compilation errors stem from "...a known UniBasic limitation on the number of constants. Tech Note 1193075 on Rocket Software's support site explains that there is a limit to the number of variables and constants that can be used in a BASIC program. The limits are 32767 variables and 32765 constants. However, the maximum space that constants can take up in a program is 50,000 bytes and this figure is reduced by the actual number of constants."

    too many constants near line 115 of...
    too many constants near line 121 of...
    too many constants near line 149 of...
    too many constants near line 149 of...

    However, all that is required to get past it is is commenting out the following variable assignment, which suggests to me that there is something the string that is freaking out the compiler:

    X.XML.LINE = '<w:p w14:paraId="50845D62" w14:textId="71EB9312" w:rsidR="00C91BE8" w:rsidRDefault="00C91BE8" w:rsidP="00C91BE8"><w:pPr><w:pStyle w:val="Heading2"/></w:pPr><w:r><w:t>By Academic Information</w:t></w:r></w:p><w:tbl><w:tblPr><w:tblStyle w:val="TableGrid"/><w:tblW w:w="0" w:type="auto"/><w:tblLayout w:type="fixed"/><w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/></w:tblPr><w:tblGrid><w:gridCol w:w="1885"/><w:gridCol w:w="1483"/><w:gridCol w:w="1483"/><w:gridCol w:w="1483"/><w:gridCol w:w="1483"/><w:gridCol w:w="1483"/></w:tblGrid>'

    I turned on show nonprinting characters, but that didn't reveal anything, so I'm not sure what to try next.

    Any suggestions?



    ------------------------------
    Shawn Waldie
    enterprise application developer
    Rocket Forum Shared Account
    Los Angeles CA US
    ------------------------------


  • 2.  RE: Too many constants?

    ROCKETEER
    Posted 03-28-2023 12:07

    Shawn,

    Can you supply the program so that I can test compile it on our machines internally.

    Thanks,



    ------------------------------
    Jonathan Smith
    UniData ATS
    Rocket Support
    ------------------------------