Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Implicit read of first array element problem ...
Message
 
 
To
10/10/2003 11:14:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00837434
Message ID:
00837937
Views:
33
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform