Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combodate
Message
De
09/03/2010 01:53:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
09/03/2010 01:32:57
Muthu Vel
Sty Company
Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01453358
Message ID:
01453360
Vues:
44
>I have a transaction .scx, in that i had placed two combo box namely 1.datefrom 2.dateto. when i load the form i want all the dates of the current month will display in the combo box.
>
>How to do this?

Just an example:
_SCREEN.ADDOBJECT('cbo1','combobox')
_SCREEN.cbo1.VISIBLE = .T.
lnYear  = YEAR(DATE())
lnMonth = MONTH(DATE())

FOR lnDay = 1 TO DAY(GOMONTH(DATE(lnYear,lnMonth,1),1)-1)
 _SCREEN.cbo1.ADDLISTITEM(TRANSFORM(DATE(lnYear,lnMonth,lnDay)),lnDay)
ENDFOR &&lnDay
HTH
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform