Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subscript out of range on a report???
Message
From
21/11/1998 19:04:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00160049
Message ID:
00160231
Views:
16
>I incurred the strangest error when I tried to create a report: Subscript Out of Range. I thought that this error was only if you do not dimension arrays properly. Can someone answer this question???
>
>TIA

I got that when I printed an array member based on an index into it stored in a table, i.e. the report field expression contained something like

SomeArray[alias.field]

Though I made sure the field always contained proper values, there were always some imported, old, or simply bad data with field empty, which evaluates to zero, which can't be an index into an array. I've written a simple function to call instead, and it checked for bounds and returned a proper array element. I think I've posted it already.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform