Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Delimited String to ActX DLL Function from Webpage

Status
Not open for further replies.

Rock6431

Programmer
Mar 23, 2002
56
US
Hi All,

I have an ActX dll that I use to interface with my billing system from webpages. I am trying to pass a delimited string from my database into a function and I can't figure it out.

Basically, what I am trying to pass is a list of keycodes that I want to activate/allow for a particular <text> tag in a dynamic html page.

My function outlines and allows the different keys based upon keywords that I created.

In other words, I am passing the following string to allow the keys of 0,1,2,3,4,5,6,7,8,9,/,Tab,Return, and the 4 Arrowkeys to be used. Like for a DATE textbox.

MC is my DLL obj and is in working condition, as the other functions are working fine...

CALL MC.ActivateKeys(&quot;0TO9, /, TAB, RETURN, BACKSPACE, AKEYS&quot;)

My Function begins as:

Public Function ActivateKeys(strKEYS)
' Work through the Key List...
End Function

My Problem is that in VB Studio, IF I add &quot;AS STRING&quot; to strKEYS listed above, it works. BUT... If I add &quot;AS STRING&quot; and compile it into the DLL, and access it from the webpage, it errors as it see's the info from the webpage as a variant. Which I also tried (as variant)...

How can I pass a delimited string from a webpage using a comma as the delimiter to an ActX dll Com obj?

Thanks...
Rock6431




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top