Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime picker control question
Message
De
08/11/2001 22:54:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Datetime picker control question
Divers
Thread ID:
00579507
Message ID:
00579507
Vues:
50
I am using the MS Datetime picker ActiveX control on a form and would like to conditionally change the controlsource property of the control to "" whenever there is an empty/null date field to avoid OLE dispatch error that results when the controls encounters an empty/null date.

I have put the following code in the init method of the form.

if empty(invhdrdate)
thisform.txtcal.controlsource=""
endif

invhdrdate is a date field from a table, txtcal is my datetime picker control.

When this code is run, I am getting "OLE Dispatch Error..Property is readonly".

How can I avoid this ? Is there anyway to code around the empty/null date issue with the datetime picker control ?

I am using VFP 7.0

Thank you.

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform