Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript alternative for 'Me'

Status
Not open for further replies.

oppcos

Programmer
Dec 1, 2004
209
US
Hi,
I'm trying to work with classes in VBScript. At the moment, I have an object with a function that searches other objects for an attribute and returns that object. In some cases, it needs to return itself. I tried to assign the return value to 'Me' ala VB, but that apparently isn't available to VBScript. Any suggestions for a workaround? I'm pretty stumped.
Thanks.
 
Search this forum for 'self'. Here is one thread:


[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Hm.. Looks like my code runs on IE and WScript 5.5, but not on the obscure runtime I was trying to get it going on (old version of Outlook forms). I guess I'll have to just work around the limitation with some extra tests.

Thanks. Glad to hear most VBScript engines have 'Me'. It was hard to believe they wouldn't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top