Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combodate
Message
From
09/03/2010 01:53:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
09/03/2010 01:32:57
Muthu Vel
Sty Company
India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01453358
Message ID:
01453360
Views:
43
>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]
Previous
Reply
Map
View

Click here to load this message in the networking platform