dbTalk Databases Forums  

ActiveX Scripting

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss ActiveX Scripting in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JLFleming
 
Posts: n/a

Default ActiveX Scripting - 10-01-2004 , 06:08 AM







I am creating an ActiveX VBScript to run in my DTS
package. Is it possible to create a function that
returns a value? Here is an example:

Function WhoIsIt(strText, strText2) AS Boolean
..
..
.. (some processing)

WhoIsIt = False
End Function

Thank you,
JLFelming

Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: ActiveX Scripting - 10-01-2004 , 07:29 AM






Yes but you need to remove the AS Boolean. You don't declare
data types in VBScript. The function will return a variant.
You need to wrap the value in a conversion function if you
need to ensure a specific data type - CBool for a boolean.

-Sue

On Fri, 1 Oct 2004 04:08:55 -0700, "JLFleming"
<anonymous (AT) discussions (DOT) microsoft.com> wrote:

Quote:
I am creating an ActiveX VBScript to run in my DTS
package. Is it possible to create a function that
returns a value? Here is an example:

Function WhoIsIt(strText, strText2) AS Boolean
.
.
. (some processing)

WhoIsIt = False
End Function

Thank you,
JLFelming


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.