Link to home
Start Free TrialLog in
Avatar of B_B_Boris
B_B_Boris

asked on

shared function in Visual Basic 6 (outlook macro)

Hi there,

I am writing an outlook macro in Visual Basic 6 and I apparently can't make a shared function. I've createrd a class module in my project and when I write in it, for example, the single line

Private shared function hello()

I get a compilation error just after pressing "Enter" :
   compilation Error :
   Expected : identifier

What's wrong with the word "shared" ?

Thx
Avatar of EDDYKT
EDDYKT
Flag of Canada image

don't think vb6 support shared
ASKER CERTIFIED SOLUTION
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of B_B_Boris
B_B_Boris

ASKER

I've got to do without shared stuff then ...

Thx for your message anyway