 |
|
|
|
| Author |
Message |
GilW
Joined: 05 Aug 2007 Posts: 9
|
Posted: Tue Sep 02, 2003 4:20 pm Post subject: VBScript & CDO Constants - Please help |
|
|
I'm trying to use cdo constants from vbscript store event sink.
My code is:
Sub ExStoreEvents_OnSave(pEventInfo, bstrURLItem, lFlags)
' I'm trying to use cdoCalendarFolderURL constant but it's empty
End Sub
Whats wrong?
Thanks,
Gil
Archived from group: microsoft>public>exchange>applications |
|
| Back to top |
|
 |
newbie
Joined: 05 Aug 2007 Posts: 1
|
Posted: Tue Sep 02, 2003 2:24 pm Post subject: Re: VBScript & CDO Constants - Please help |
|
|
I have had problems with using constants in the past (althought not CDO
specific).
If you find a solution, please let us know!!
I ended up declaring the Constants in the VB Script- not the best solution
at all, but something even MSDN sample code uses sometimes.
"GilW" wrote in message@tk2msftngp13.phx.gbl...
> I'm trying to use cdo constants from vbscript store event sink.
>
> My code is:
>
>
>
>
> Sub ExStoreEvents_OnSave(pEventInfo, bstrURLItem, lFlags)
> ' I'm trying to use cdoCalendarFolderURL constant but it's empty
> End Sub
>
>
> Whats wrong?
>
> Thanks,
> Gil
>
> |
|
| Back to top |
|
 |
Tom Rizzo [MSFT]
Joined: 05 Aug 2007 Posts: 13
|
Posted: Fri Sep 05, 2003 12:11 am Post subject: Re: VBScript & CDO Constants - Please help |
|
|
I don't know if your code is client-side or server-side but you can do
references so you can use constants in VBScript. I forget the exact syntax
but the Exchange SDK should have it.
Tom
--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
This posting is provided "AS IS" with no warranties, and confers no rights.
"newbie" wrote in message@TK2MSFTNGP12.phx.gbl...
> I have had problems with using constants in the past (althought not CDO
> specific).
> If you find a solution, please let us know!!
>
> I ended up declaring the Constants in the VB Script- not the best solution
> at all, but something even MSDN sample code uses sometimes.
>
> "GilW" wrote in message
> @tk2msftngp13.phx.gbl...
> > I'm trying to use cdo constants from vbscript store event sink.
> >
> > My code is:
> >
> >
> >
> >
> > Sub ExStoreEvents_OnSave(pEventInfo, bstrURLItem, lFlags)
> > ' I'm trying to use cdoCalendarFolderURL constant but it's empty
> > End Sub
> >
> >
> > Whats wrong?
> >
> > Thanks,
> > Gil
> >
> >
>
> |
|
| Back to top |
|
 |
GilW
Joined: 05 Aug 2007 Posts: 9
|
Posted: Sun Sep 07, 2003 4:05 pm Post subject: Re: VBScript & CDO Constants - Please help |
|
|
My code is server side and I tried to use reference.
The syntax that I tried was:
"Tom Rizzo [MSFT]" wrote in message@TK2MSFTNGP10.phx.gbl...
> I don't know if your code is client-side or server-side but you can do
> references so you can use constants in VBScript. I forget the exact
syntax
> but the Exchange SDK should have it.
>
> Tom
>
>
>
> --
> Looking for a good book on programming Exchange, Outlook, ADSI and
> SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
>
> "newbie" wrote in message
> @TK2MSFTNGP12.phx.gbl...
> > I have had problems with using constants in the past (althought not CDO
> > specific).
> > If you find a solution, please let us know!!
> >
> > I ended up declaring the Constants in the VB Script- not the best
solution
> > at all, but something even MSDN sample code uses sometimes.
> >
> > "GilW" wrote in message
> > @tk2msftngp13.phx.gbl...
> > > I'm trying to use cdo constants from vbscript store event sink.
> > >
> > > My code is:
> > >
> > >
> > >
> > >
> > > Sub ExStoreEvents_OnSave(pEventInfo, bstrURLItem, lFlags)
> > > ' I'm trying to use cdoCalendarFolderURL constant but it's empty
> > > End Sub
> > >
> > >
> > > Whats wrong?
> > >
> > > Thanks,
> > > Gil
> > >
> > >
> >
> >
>
> |
|
| Back to top |
|
 |
Karla
Joined: 06 Aug 2007 Posts: 1
|
Posted: Tue Sep 02, 2003 9:56 am Post subject: VBScript & CDO Constants - Please help |
|
|
VBScript does not support named constants. You have to use
the numeric equivalent.
>-----Original Message-----
>I'm trying to use cdo constants from vbscript store event
sink.
>
>My code is:
>
>
>
>
>Sub ExStoreEvents_OnSave(pEventInfo, bstrURLItem, lFlags)
> ' I'm trying to use cdoCalendarFolderURL constant but
it's empty
>End Sub
>
>
>Whats wrong?
>
>Thanks,
>Gil
>
>
>.
> |
|
| Back to top |
|
 |
Karla
Joined: 06 Aug 2007 Posts: 1
|
Posted: Tue Sep 02, 2003 10:02 am Post subject: VBScript & CDO Constants - Please help |
|
|
VBScript doesn't support named constants. Use the numeric
equivalent instead.
>-----Original Message-----
>I'm trying to use cdo constants from vbscript store event
sink.
>
>My code is:
>
>
>
>
>Sub ExStoreEvents_OnSave(pEventInfo, bstrURLItem, lFlags)
> ' I'm trying to use cdoCalendarFolderURL constant but
it's empty
>End Sub
>
>
>Whats wrong?
>
>Thanks,
>Gil
>
>
>.
> |
|
| Back to top |
|
 |
GilW
Joined: 05 Aug 2007 Posts: 9
|
Posted: Tue Sep 02, 2003 10:31 pm Post subject: Re: VBScript & CDO Constants - Please help |
|
|
I don't know the numeric equivalent, I tried to print it from wsf script
and I found that the constant is string and not a number but it's still not
working from the store event sing.
"Karla" wrote in message$83ac9b10$a101280a@phx.gbl...
> VBScript doesn't support named constants. Use the numeric
> equivalent instead.
>
>
> >-----Original Message-----
> >I'm trying to use cdo constants from vbscript store event
> sink.
> >
> >My code is:
> >
> >
> >
> >
> >Sub ExStoreEvents_OnSave(pEventInfo, bstrURLItem, lFlags)
> > ' I'm trying to use cdoCalendarFolderURL constant but
> it's empty
> >End Sub
> >
> >
> >Whats wrong?
> >
> >Thanks,
> >Gil
> >
> >
> >.
> > |
|
| Back to top |
|
 |
Sven Carstensen
Joined: 05 Aug 2007 Posts: 1
|
Posted: Wed Sep 03, 2003 2:25 am Post subject: Re: VBScript & CDO Constants - Please help |
|
|
Hi Gil,
"GilW" wrote in message@TK2MSFTNGP11.phx.gbl...
> I don't know the numeric equivalent, I tried to print it from wsf script
> and I found that the constant is string and not a number but it's still
not
> working from the store event sing.
You can use a tool like OleViewer which is available with VisualStudio, VB,
or the Platform SDK to have a look at the typelib where you should find
numeric or string constants. Numerics will be enum types, strings will be in
a module.
You can also use VB or VBA (Winword, Outlook...) to reference such
Typelibraries and get the values in those IDEs.
HTH
--
SvenC
E-Mail: Exchange the capital letters and reverse everything right of @
> "Karla" wrote in message
> $83ac9b10$a101280a@phx.gbl...
> > VBScript doesn't support named constants. Use the numeric
> > equivalent instead.
> >
> >
> > >-----Original Message-----
> > >I'm trying to use cdo constants from vbscript store event
> > sink.
> > >
> > >My code is:
> > >
> > >
> > >
> > >
> > >Sub ExStoreEvents_OnSave(pEventInfo, bstrURLItem, lFlags)
> > > ' I'm trying to use cdoCalendarFolderURL constant but
> > it's empty
> > >End Sub
> > >
> > >
> > >Whats wrong?
> > >
> > >Thanks,
> > >Gil
> > >
> > >
> > >.
> > >
>
>
|
|
| Back to top |
|
 |
|
|
| Related Topics: | Scheduled Task, VBScript, CDO, and Public Folders Trying again... =) I have a small VBScript application that uses CDO to scan posts in a public folder and move them to an achive folder if they are old. It works great when I run it myself or from any account that has permissions. The problem is it fails
Scheduled Task, VBScript, CDO, and Public Folders I have a small VBScript application that uses CDO to scan posts in a public folder and move them to an achive folder if they are old. It works great when I run it myself or from any account that has permissions. The problem is it fails when I try to run i
change Show this address list first" via Vbscript Hello all, i need to change the "Show this address list first" in outllook. via VBscript. i search all over and can't get a solution. can some one help please and send some code? thanks itay
change outlook "Show this address list first" via VBscript hello all, i would like to change outlook "Show this address list first" to another list. via VBscript i looked all over and didn't find anything can some please help , and mybe send a some code? many thanks. itay
VBscript Hello, I have seen that it(s very useful to use both Vbscript and Exchange, so I would like to learn more about Visual Basic. Do you have got good links to learn it? Thanks for advance |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|