Announcement

Collapse
No announcement yet.

Variable Declare

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

  • Tom Hanlin
    replied
    You may be making an array of 11x11 elements there but, otherwise, there's nothing particularly wrong with your DIM statement. The error message you got should give you some idea of what went wrong. Here's a better way of getting there:

    DIM A(1 TO 10, 1 TO 10) AS LONG


    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • John Kerr
    started a topic Variable Declare

    Variable Declare

    I have been doing PB for DOS applications (small) for a while, and am now just getting around to declaring variable correctly.

    I am attempting to dimension an array of 10 x 10 size and declare the elements as LONG.

    I have tried this:

    DIM A(10,10) AS LONG

    But, I do receive an error. Can someone give me some quick advise on how to properly declare a 10x10 array of LONG numbers??

    Thanks,

    John

    ------------------
Working...
X