Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why are COM parameters Object data types ?
Message
De
14/12/1999 13:46:21
 
 
À
14/12/1999 13:40:43
Scott Knight
Human Resources Development Canada
St. John's, Terre-Neuve, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00303448
Message ID:
00303527
Vues:
16
>>>>*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.
>
>I tried that as well and no cigar...Same thing. My brain is foggy as well after several days of fighting with this problem.

Try from the ASP page Request.QueryString("< var >")

Or pass the entire request object through.

To access these objects from with VFP you would
LPARAMETERS loRequest

lcVar = loRequest.Form("< var >" ).Item()

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform