Line too long in the edit window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Line too long in the edit window

    I am putting in some really long array calls and I get a line too long message. How can I get around that?

    Following is the code:

    COMMENT/REPT,*****
    ASSIGN/AR1 = ARRAY(PNT14.Z-PNT14.TZ,PNT15.Z-PNT15.TZ,PNT16.Z-PNT16.TZ,PNT17.Z-PNT17.TZ,PNT18.Z-PNT18.TZ,PNT19.Z-PNT19.TZ,PNT20.Z-PNT20.TZ,PNT21.Z-PNT21.TZ,PNT22.Z-PNT22.TZ,PNT23.Z-PNT23.TZ,PNT24.Z-PNT24.TZ,PNT25.Z-PNT25.TZ)
    COMMENT/REPT,*****

    Code:
    COMMENT/REPT,*****
                ASSIGN/AR1 = ARRAY(PNT14.Z-PNT14.TZ,PNT15.Z-PNT15.TZ,PNT16.Z-PNT16.TZ,PNT17.Z-PNT17.TZ,PNT18.Z-PNT18.TZ,PNT19.Z-PNT19.TZ,PNT20.Z-PNT20.TZ,PNT21.Z-PNT21.TZ,PNT22.Z-PNT22.TZ,PNT23.Z-PNT23.TZ,PNT24.Z-PNT24.TZ,PNT25.Z-PNT25.TZ)
                COMMENT/REPT,*****
    If I try to add 1 more point, the whole line goes blank:

    COMMENT/REPT,*****
    COMMENT/REPT,*****
    ASSIGN/AR1 =
    COMMENT/REPT,*****

    Code:
    COMMENT/REPT,*****
                COMMENT/REPT,*****
                ASSIGN/AR1 = 
                COMMENT/REPT,*****
    Everything gone!!!!!!!!!!

    Undo gets my array back again. But I still need to add 3 points to my array. Any suggestions??????



    Thanks, Jan.
    ***************************
    PC-DMIS/NC 2010MR3; 15 December 2010; running on 18 machine tools.
    Romer Infinite; PC-DMIS 2010 MR3; 15 December 2010.

  • #2
    I believe your can only go to a certain point. You will have to create another Array. Thats what i've had to do in past. Someone else might have solution i don't know about. My .02
    sigpic.....Its called golf because all the other 4 letter words were taken

    Comment


    • #3
      I'd try a 2 dimensional array before creating another array it looks like you are using swear words in your comments too. Interesting, I'd like to do that too but I'd probably get fired.

      Craig
      <internet bumper sticker goes here>

      Comment


      • #4
        Yes, the nature of my reports is very graphic. They are quite popular around here. Always create a nice stir. I have not been banned from here though....


        Jan.
        ***************************
        PC-DMIS/NC 2010MR3; 15 December 2010; running on 18 machine tools.
        Romer Infinite; PC-DMIS 2010 MR3; 15 December 2010.

        Comment


        • #5
          Jan,

          As an update I tried a 2 dimensional array with your data and I could not get all of your data points into a 2 dimensional array. I could however reference the number of features you need to reference in one array:
          Code:
          ASSIGN/V1 = ARRAY({PNT1}, {PNT2}, {PNT3}, {PNT4}, {PNT5}, {PNT6}, {PNT7}, {PNT8}, {PNT9}, {PNT10}, {PNT11}, {PNT12}, {PNT13}, {PNT14})
          I don't know what this does to your code downstream but my guess is you'll have to adjust it to get what you want. I hope you get a solution to this if this is cumbersome down stream. You may have to go bw_bob's route and work from multiple arrays.

          Craig
          <internet bumper sticker goes here>

          Comment


          • #6
            Is there a limit to the array or just a limit to the method of getting the stuff into it??
            Links to my utilities for PCDMIS

            Comment


            • #7
              I don't think it is the number of indexes but I can't prove it. I did a 2D array of each feature as the first index then the data (i.e. ARRAY(ARRAY(PNT1.Z, PNT1.TZ), ARRAY(PNT2.Z, PNT2.TZ) etc)) and it killed me about the time it did Jan in. But like I said I didn't test it. I'm inclined to say it is simply a line charecter length issue. Someone could test that with a long comment or something to that effect I suppose. Jan could you do a comment of one of your swearing tirades and see how long it will let you blow steam before cutting you off?

              Craig

              UPDATE EDIT:

              I just tried it with comments. It will only allow the length to go to column 256 in the programming environment then you get the line too long error.
              Last edited by craiger_ny; 08-18-2006, 10:42 AM.
              <internet bumper sticker goes here>

              Comment


              • #8
                I've run into this problem before. What I did as a work around was I created several arrays with the points I needed and the created an array from the arrays. Worked out great!
                sigpic GO LEAFS GO!!!

                Stay true to your friends, 'cause they'll save you in the end.
                -Sam Roberts

                Comment


                • #9
                  Originally posted by Scott Appleyard
                  I've run into this problem before. What I did as a work around was I created several arrays with the points I needed and the created an array from the arrays. Worked out great!
                  That is what I was thinking of doing. How do you call up the data in the array within the array? Does it behave as a 2 dimensional array where you give it an index like Array(2, 3) where 2 is the second array in the array and the 3 is the third index? I'm curious.

                  Craig
                  <internet bumper sticker goes here>

                  Comment


                  • #10
                    Thanks for all the help.

                    Originally posted by craiger_ny
                    That is what I was thinking of doing. How do you call up the data in the array within the array? Does it behave as a 2 dimensional array where you give it an index like Array(2, 3) where 2 is the second array in the array and the 3 is the third index? I'm curious.

                    Craig

                    That's what I have started to do. For the real long calls, I split them into more arrays. Seems to work. Just a hassle.

                    As you also found, I have to cut my tirades short at 256. It's a shame that there is no roll-over character or something that allows you to continue an array on a second or third line. I keep blowing through the 256 limit continuously.



                    Thanks again, Jan.
                    ***************************
                    PC-DMIS/NC 2010MR3; 15 December 2010; running on 18 machine tools.
                    Romer Infinite; PC-DMIS 2010 MR3; 15 December 2010.

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X