Function in VB Component fail to accept string var

Results 1 to 2 of 2

Thread: Function in VB Component fail to accept string var

  1. #1
    Ojasvi Guest

    Default Function in VB Component fail to accept string var

    Hi !<BR><BR>I have written an ActiveX Component in VB 6 and using it in ASP. WHen I pass actual string it works, but it is not accepting the string variable. Tried &#039Byref&#039 and &#039Byval&#039 in function declaration, but nothing works...<BR><BR>Thanks in advance,<BR>-Ojasvi

  2. #2
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: Function in VB Component fail to accept string

    What is the datatype expected by your VB function? I.e., how are you declaring your function in your VB component? Like so:<BR><BR>Public Function FooBar(someString as String) as Something<BR><BR>???<BR><BR>Change the:<BR>someString as String<BR><BR>to:<BR>someString as Variant<BR><BR>and see if that works!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •