Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to pass a memo field as parameter?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00214528
Message ID:
00214535
Vues:
15
>?
>
>THanks
>eric.

You can pass a memo field by value to a function or procedure it will always pass by value. There may be situations where your expectation of pass by reference side effects cause a problem, not because it's a memo field, but because fields and variables behave differently. For example:
create table temp (MemFld M)  && Char field would do as well
append blank
replace MemFld WITH 'abcdef'
local cVar
cVar = MemFld
? MemFld, cVar && They're the same
SET UDFPARMS TO REFERENCE
DO MyFunc WITH MemFld
? MemFld, cVar && still the same
DO MyFunc WITH cVar
? MemFld, cVar && different

FUNCTION MyFunc
PARAMETER cInString
cInString = 'fedcba'
RETURN
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
Répondre
Fil
Voir

Click here to load this message in the networking platform