Problem using a COM Component

Results 1 to 2 of 2

Thread: Problem using a COM Component

  1. #1
    Join Date
    Dec 1969

    Default Problem using a COM Component

    Hello there,<BR><BR>I&#039;ve made a COM component which has a function<BR>with the follwing signature..<BR><BR>Public Function Highlight(basetext As String, keyword As String, csstag As String) As String<BR><BR>When I call this function from my ASP script with hardcoded arguments like<BR><BR>obj.Highlight("abc,xyz,abcxyz","abc"," style1")<BR>it works. But if I pass values using variables like<BR>obj.highlight(var1,var2,var3)... it doesn&#039;t work.<BR><BR>Can anybody tell me what is the reason for this problem.<BR><BR>Thanks,<BR>Sweta

  2. #2
    Join Date
    Dec 1969

    Default RE: Problem using a COM Component

    Simple. The hard-coded ones are strings you&#039;re passing. The variables are variants.<BR><BR>This isn&#039;t advanced. Maybe try the Q&A next time?<BR>obj.highlight(cstr(var1),cstr(var2),cstr(var3))<BR><BR>Craig.

Posting Permissions

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