Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select() or Select
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00337143
Message ID:
00337313
Vues:
17
>MyTable="c:\temp\temp order by MyKey in 0 shared"
>
>use &mytable && Works
>but
>use(mytable) && Error passed by reference don't work

Yes, because the variable MyTable contains more than just a name.

cMyTable = "c:\temp\temp"
cOrderExpn = " ORDER BY MyKey"

USE (cMyTable) &cOrderExpn in 0 shared

>But:
>used to ..
>MyTable="temp" && Opened with a use already
>used to
>select &MtTable && Old way in macro (still works)
>now..
>select(MyTable) && By Reference (works)
>

Parenthesis here does not indicate a function call but name resolution, and without whitespace, would simply invoke the SELECT() function and return and throw away the work area number without changing CWA. With a space, it would select the work area whose alias was in MyTable and make it the CWA.
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