VBScript in a form and the "Me property"

M

Martin

Hi,
i'm trying to use a dll function in a Outlook 2000 form. In the discription
of this dll function is written that i have to call it with the "Me
Property", but in forms vbscript I haven't the "Me Property". Does everybody
has an hint wich Parameter i have to use or how i could get the Me property
in this particularly case?

Thx
Martin
 
G

Guest

Further thoughts. You're not going to be able to get an hwnd from an Outlook item using VBScript. This isn't my area of expertise, but I'm told that you'd probably need another helper .dll to use GetWindowsProcess and enumerate all the open threads and windows looking for that one.

You might need to rethink how you're designing this application.
 
M

Martin

Sue,

my dll function is this: Public Function BrowseFolder(frm As Variant, Text
As String, StartDir As String) As String

The first Parameter "frm" want's to know who the Parent is. In Examples I
saw this call: BrowseFolder( Me, "Folder Pick", "C:\Temp"), but how could I
convey the object from the Parent Form without using the "Me" Property.

Maybe I use a alternative like "Item.Inspector.CurrentItem" or somthing like
that?

What do you think?

Martin
 
G

Guest

I think it's going to depend on what the .dll does with the frm object. In other words, is it going to work with an item, an Inspector, a page, etc. The only way to know for sure is to ask the developer who wrote the .dll. Also, see my other note about hwnd.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top