Hi all
I am getting very desperate trying to find some help on how to expose properties of an activeX control that I am constructing. I can't seem to find anything anywhere about exposing properties of a control. Maybe exposing properties is not what I am looking for even. I am new to this kind of thing and my guru is on vacation in europe right now.
Here is what I am trying to do. I have written a control that retrieves data from an SQL server and builds activeX pages in 6 IE browsers on my control. The control is working fine at this point in time. That is if the defaults are used when no parameters are passed to the control. I need to be able to pass parameters to the control. The way I propose doing this is using an ASP page such as showform.asp?CompanyID=2&username=John for example. Then in the ASP page I would assign the values to the control.
I would like to use code that looks like the following
mycontrol.CompanyID=Request.QueryString("CompanyID"
mycontrol.username=Request.QueryString("username"
mycontrol.showcoupons
I have used some products where you assign parameters in this fshion. Namely WebAuthorize. I am looking to setup the same type of functionality in my control and cannot find anything anywhere that seems to do this. I have played with a class module and property get and properrty let but do not have any experience with this to know how to use it. When I have tried to use it, it tells me the variable is undeined. I don't know how to use the let and get functions either. I know for a fact that I have done the get and let thing in the past but that project will not open for me now, VB opens, begins loading the program and then closs VB again with no error messages.
I desperately need to be able to get this functionality implemented into my program immediately so any help would be so greatly appreciated. If you do respond to my question could you please be as detailed as possible about the solution so that I do not need to ask additional questions. I am confident that a half hour of work on my part will implement this solution but I need to know how to implement it. It seems to me that it is quite simple but darned if I can find any help online or in the VB book that we have in the office.
Please help me with this or at least point me in the direction of a good tutorial on how to implement it.
Thanks in advance
Ken Patenaude
I am getting very desperate trying to find some help on how to expose properties of an activeX control that I am constructing. I can't seem to find anything anywhere about exposing properties of a control. Maybe exposing properties is not what I am looking for even. I am new to this kind of thing and my guru is on vacation in europe right now.
Here is what I am trying to do. I have written a control that retrieves data from an SQL server and builds activeX pages in 6 IE browsers on my control. The control is working fine at this point in time. That is if the defaults are used when no parameters are passed to the control. I need to be able to pass parameters to the control. The way I propose doing this is using an ASP page such as showform.asp?CompanyID=2&username=John for example. Then in the ASP page I would assign the values to the control.
I would like to use code that looks like the following
mycontrol.CompanyID=Request.QueryString("CompanyID"
mycontrol.username=Request.QueryString("username"
mycontrol.showcoupons
I have used some products where you assign parameters in this fshion. Namely WebAuthorize. I am looking to setup the same type of functionality in my control and cannot find anything anywhere that seems to do this. I have played with a class module and property get and properrty let but do not have any experience with this to know how to use it. When I have tried to use it, it tells me the variable is undeined. I don't know how to use the let and get functions either. I know for a fact that I have done the get and let thing in the past but that project will not open for me now, VB opens, begins loading the program and then closs VB again with no error messages.
I desperately need to be able to get this functionality implemented into my program immediately so any help would be so greatly appreciated. If you do respond to my question could you please be as detailed as possible about the solution so that I do not need to ask additional questions. I am confident that a half hour of work on my part will implement this solution but I need to know how to implement it. It seems to me that it is quite simple but darned if I can find any help online or in the VB book that we have in the office.
Please help me with this or at least point me in the direction of a good tutorial on how to implement it.
Thanks in advance
Ken Patenaude