Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input Date in the TextBox
Message
From
28/06/2001 06:14:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/06/2001 06:05:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00524522
Message ID:
00524581
Views:
18
>>Thanks a lot for your prompt reply. Unfortunately, I am still confused.
>>Let me explain the problem in details.
>>
>>I have a textbox in which I want the user to input date. text1.format is "E". By default century is ON. I am not chenging it anywhere. I have not changed form.datasession also. It is also set to default only. text1.controlsource is m_Fr_dt. in form.init I have following statment - STORE {} TO m_Fr_Dt.
>>
>>The form is open in modify mode. I am trying to test the form. When I run the form for the first time (by clicking on "!" icon) and enter any date in this textbox, the year does not change to 4 digit year. At the same time, if I issue a command - WAIT DTOC(m_Fr_Dt) WINDOW anywhere else in the form, it generates the error - Function argument value, tpe, or count is invalid.
>>
>>Surprisingly, when I run the form second time, everything works just fine. And I don't know how and why ???

BTW on second run it works because when a memvar is assigned as a controlsource VFP implicitly makes it public. In first it didn't because code was still in init.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform