>>>Sorry for some reason part of the message did not post...
>>
>>I fairly new in the COM world so this may be very simple. I have created a simple VFP COM Object which receives four parameters from an ASP Page. The COM object receives the parameters o.k. but they are of object type making manipulation difficult. All the documentation I have read tells me the following should work and pass the request object item values as character :
>>>
>>>'ASP page Section
>>>
>>*Server side script
>>If Len(Request("txtday")) > 0 Then
>> Set oServer = Server.CreateObject("CentralWeb.Download")
>> Response.write(Request("txtday"))
>> strResult = oServer.GetDownLoad(Request("txtday"),Request ("DropMonth"),Request("DropYear"),Request("DropType"))
>> Response.write("
")
>> Response.write(StrResult)
>>Else
>> ' No day entered write message back
>> Response.Write "Please input a day to display report"
>>End if
>>>
>>>'COM component
>>>Function GetDownload
>>>lParameters lcday,lcMonth,lcYear,lctype
>>>return type('lcday')
>>>*I want to be able to do more here with the parameters (i.e. build a date) but I can't.
>>>
>>>I thought all request items were of character data type ? Why does this return object type for all four and How do I get around it
>>>
>>>Thanks in Advance
>>>
>>>
>>>Scott
>
>try passing:
>
>Request.Form("txtday").Item
>
>VB uses the concept of default properties for some objects. The request collection is actually a collection of objects, each with a character property "item" that is the default value. When you don't specify that you actually want to pass the property, your page passes the object instead.
>
>-Note- I don't have access to the docs at the moment, so I couldn't verify this response- give it a try and please let me know if I have misinformed you because my brain is foggy.
This is the kind of thing you just hate...I shutdown my notebook, went home for the evening, came back to work this morning and everything works as it is supposed to. Of course as quick as you get rid one bump another pops up especially when walking in new world.
Thanks for your help
Scott K
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only