Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array Error Message # 1234
Message
From
23/05/2005 15:17:22
 
 
To
23/05/2005 15:04:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01016864
Message ID:
01016868
Views:
8
You are referencing an element that does not exist.

Can you post your code? I typically step through an array:
dimension myarray(2,2)
myarray (1,1) = "Line1"
myarray (1,2) = "Line 1 detail"
myarray (2,1) = "Line2"
myarray (2,2) = "Line 2 detail"

FOR icount = 1 to ALEN(myarray,1)
  ? myarray(icount,1)+" - "
  ?? myarray(icount,2)
ENDFOR

*The below line will generate the error because myarray(3,1) doesn't exist:

? myarray(3,1)
>I am using a Array and getting this error message: "Subscript is outside define range". What do I need to do to fix this error?
>
>
>Thank You In Advance
>
>
>
>Winfred Majors
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform