Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to pass a memo field as parameter?
Message
From
03/05/1999 10:08:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00214528
Message ID:
00214535
Views:
17
>?
>
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform