|
-
February 2nd, 2000, 11:16 AM
#1
Passing function parameters by reference
Hi.
I have a routine that has the following declaration:
Private Function ParseRec(szStr As String,
szKey As String,
szValue As String)
Within this function, I am modifying the values of szKey and
szValue by parsing the string szStr.
I am using the above function as follows:
ParseRec(szSearch, rcRec.Key, rcRec.Value)
where rcRec is a record with Key and Value fields, both public, of type
String.
I am doing a trace of this within the function ParseRec, and
see that both Key and Value are being updated, but outside the
function, the rcRec.Key and rcRec.Value fields do not get
updated. What am I doing wrong ?
Any information will be greatly appreciated.
Thank you.
Raja
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|