Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array Dimensions are invalid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00253323
Message ID:
00253350
Vues:
20
>>A customer gets the message:
>>"Array dimensions are invalid"
>>Error 230
>>
>>I can't seem to trigger this message myself.
>>
>>In what cases will this error occur???
>>
>>I only can get "invalid subscript reference" messages.
>
>You must have more than 0 and less than 65,000 elements in an array. This error message will happen if you violate this range. Elements being either rows or columns.

Hi Nigel,

Interestingly, DIMENSION a_array[0] or DIMENSION a_array[65001] generates an "Invalid subscript reference in VFP 6.0 SP3, rather than error 230. Further, DIMENSION a_array[33000, 2] generates a "Too many variables" error. In fact, the only way I was able to generate error 230 was to use the ERROR command. Now this was in the development environment rather than run-time, so your explaination could be correct in the latter. However, there are instances where spurious error messages are generated. For example, if you issue a SET ORDER TO MYTAG, and MYTAG doesn't exist, VFP generates a "Syntax Error". So I'm not so sure that the DIMENSION statement is the problem.

Perhaps if Tim would post the line of code that's generating the error, we could get some more insight into this.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform