[Gambas-user] Re; Object to .. conversion
Gareth Bult
gareth at ...1689...
Sat Sep 22 20:34:00 CEST 2007
Hi,
I want to be able to do a lookup based on the object calling the function.
My idea is to pass "ME" as the first parameter, then have a static collection in the function which I can look up based on "ME".
For example;
Print Hello(ME)
PUBLIC arr as Collection
PRIVATE SUB Hello(obj as Object)
RETURN arr.Find(obj)
END
Now I can't use an object as a key to a collection .. Can anyone tell me how to convert an object (address) into a string ?
.. or can anyone see a nicer way of doing what I'm trying to do ?
Thanks,
Gareth.
--
Managing Director, Encryptec Limited
Tel: 0845 25 77033, Mob: 07891 389657
Email: gareth at ...1689...
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.
More information about the User
mailing list