Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subscript out of range on a report???
Message
De
21/11/1998 19:04:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00160049
Message ID:
00160231
Vues:
21
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform