Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implicit read of first array element problem ...
Message
 
 
À
10/10/2003 11:14:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00837434
Message ID:
00837937
Vues:
32
I don't think it's a bug because in m.X.Top FoxPro expects m.X to be an object and it isn't an object but array.

>Hi,
>
>
>DIMENSION X[1]
>x=3
>? x
>*X=_SCREEN   &&  this is a trapped error
>			&& ( populate a array with a object ref is ugly )
>X[1]=_SCREEN
>*** BUT read first element of array it would have to work
>? m.X.Top	 && <---- it is documented this behaviour limit ?( for me it is a bug )
>? m.X[1].Top
>
>
>The workaround is simple,
>but if i use a procedure with a parameter for simple scalar object or complex array structure,
>is need complicate the parameters or the code :
>
>PROCEDURE pippo(vaParameters)
>* vaParameters is a for reference parameter
>* vaParameters can be a scalar or a array
>* vaParameters first element is a object
>  IF m.vaParameters.something && i cannot do this directly
>    ....
>  ENDIF
>ENDPROC
>
>
>
>Fabio
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform