String reference 
Author Message
 String reference

Hi all, I must be missing something so obvious, but this is
driving me nuts. What I need is a way to create a reference
to a string in VB5(SP2). Here's a code sample;

'Global var
dim szData as string

public CollectString(byref szPrivateData as string)
        szData=szPrivateData     'This copies the content
end

Instead of copying the content, I'd like a reference to
szPrivateData which I can keep around.

Any help would be greatly appreciated.

Thanks,
        Colin
--
 Colin Goldstein                      Kana.Com, Inc.
 Senior Technical Manager             44 Encina Avenue
 Phone : (415) 325-9850 ext. 21       Palo Alto, CA 94301



Mon, 14 Feb 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Passing String Reference

2. I want to access an object by using a string reference

3. Passing a String reference

4. string references

5. passing string reference

6. String reference field OR: how step thru array 1,1-1,2-1,3-2,1-2,2 etc.

7. text string to reference field

8. Strings and File References

9. Help: Problems with reference to common functions (strings)

10. How To: Reference a String?

11. Reference to an object from a String value

12. Referencing a variable by its name as a string

 

 
Powered by phpBB® Forum Software