Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Implicit read of first array element problem ...
Message
De
10/10/2003 11:14:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Implicit read of first array element problem ...
Divers
Thread ID:
00837434
Message ID:
00837434
Vues:
56
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform