Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS DT Picker Control, MSComm Control
Message
De
18/04/2000 15:38:44
 
 
À
18/04/2000 00:38:59
Mike Holland
J.M. Holland & Associates, Inc.
Riverside, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00360726
Message ID:
00361022
Vues:
19
>Hey Folks,
>
>I'm flailing with both these controls and getting nowhere. Any tips would be appreciated.
>
>I'm using VFp 6.0 and Mere Mortals 6.0a on Win98 for this test but I'm not using the mmf ActiveX
>wrapper class.
>
>I'm not able to retrieve a selected date or time from the DT Picker. I've put up a simple modal form,
>dropped an OLE Control, Inserted the DT Picker as described in the VFp docs (as far as I can tell)
>and named it axDate. I've also dropped a simple textbox to display the value selected in the DT Picker.
>The form and controls load and the DT Picker allows the selection of a date both by using the calendar
>and keyboard entry. But I'm unable to retrieve the selected date even to display in the text box.
>Through endless flails, I've tried referring to the selected date as everything from
>ThisForm.axDate.Value (silly me) to the separate components of ..Month, ..Day,
>..Year and have tried to use the ReadExpression method as a 'Get' as in:
>
> ThisForm.axDate.ReadExpression(ThisForm.axDate.Value)
>
>A couple of variations on 'property Value not found' are thrown but that's the basic message. There
>certainly seems to be a 'Value' property on the DT Picker Properties sheet. By the way, I am selecting
>the axDate control from the context menu Object List to be sure I've got a correct reference.
>
>I'm sure it seems silly that if I can't even get the date out of an ActiveX control that I'd even try to
>use MSComm but that's me. Stop me if you've heard this but things that I've done for years
>procedurally (gasp) border on the impossible now that everything's been made so simple.
>



Add the keyword .Object to your reference:
ThisForm.axDate.Object.Value
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform