Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug: call by Reference search in the list of the fields
Message
 
To
16/10/2004 05:00:33
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00951922
Message ID:
00951994
Views:
18
Fabio,

This is not bug, it's designe behavior.
Why?
1) You can't send field as reference.
2) If you not specify m. then field has priority, if exist.

Look at help to "Access to Variables"

MartinJ


>Previous issue Thread #950993
>
>Bug/Issue : 2 of 27
>
>TITLE: Bug: call by Reference search in the list of the fields
>
>VERSION: 09.00.0000.1720 and previous
>
>STEPS TO REPRODUCE:
>
>CLOSE DATABASES ALL
>CLEAR
>CREATE CURSOR pipe (anyName I)
>SCATTER MEMVAR
>ON ERROR ?? MESSAGE()
>? 'Call is ',BLA(@anyName)
>? 'Call is ',BLA(@m.anyName)
>ON ERROR
>USE
>
>PROCEDURE BLA (p1)
>	RETURN 'ok'
>ENDPROC
>
>
>
>OBSERVED BEHAVIOR:
>When the call by reference is made without the prefixed one m., VFP explores the list of the fields and if a field with the same name exists, it generates an error.
>
>EXPECTED BEHAVIOR:
>VFP does not have to explore the list of the fields when a call by Reference is done ( like on macro substitution )
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform