Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#DEFINE / Arrays
Message
De
01/06/1999 20:06:16
 
 
À
01/06/1999 19:58:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00223511
Message ID:
00225159
Vues:
14
>>I don't know any problem like that.
>>
>
>Try the following:
>
>PUBLIC aPubArray[2,3]
>aPubArray = 'Foo'
>PRIVATE aPrivArray[2,3]
>aPrivArray = 'Bar'
>? DEMOARRAYERROR(@aPrivArray) && OK
>? DEMOARRAYERROR(@aPubArray) && meltdown
>
>FUNCTION DEMOARRAYERROR
>LPARAMETER aRefArray
>DIMENSION aRefArray[4,2]
>aRefArray = 'Mumble'
>? aRefArray[1,1], aPubArray[1,1]
>RETURN
>

BTW, the problem is that the PUBLIC array loses its PUBLIC scope when passed by ref...

>>Vlad
>>
>>>As I remember, there's a problem passing public arrays by reference in VFP, too. From the standpoint of this discussion, probably not an issue, but certainly an argument against wide use of public arrays .
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform