Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date in a TextBook Display
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01542880
Message ID:
01542883
Views:
54
>>>Good Morning!
>>>
>>>Just trying to figure something out....
>>>
>>>In a textbox, a birthday is showing up this way.....
>>>
>>>11/24/51
>>>
>>>I would like it to show as 11/24/1951...
>>>
>>>and I tried some Format options to no avail.
>>>
>>>What would you suggest?
>>>
>>>Thanks!
>>
>>Set CENTURY on?
>
>Thanks... I forgot about that setting....
>
>I went and wrote some code in the INIT of the form to save the setting to
>
>
>Thisform.p_CenturyOnOff = SET("CENTURY")
>SET CENTURY ON 
>
>
>
>and in the m_close method at the end I wrote...
>
>
>goTbrFuncToolBar.enabled = .T.
>goTbrSideBar.enabled = .T.
>SET CENTURY &Thisform.p_CenturyOnOff
>
>Thisform.release()
>
>I get a syntax error on the SET CENTURY &Thisform.p_CenturyOnOff
>
>so I changed that to SET CENTURY Thisform.p_CenturyOnOff
>
>and still get a SYNTAX error..... sigh.... what am I overlooking.... ??
>
>Thanks!

I figured it out....

new code in m_close
LOCAL lcCenturyOnorOff

goTbrFuncToolBar.enabled = .T.
goTbrSideBar.enabled = .T.
lcCenturyOnorOff = Thisform.p_CenturyOnOff
SET CENTURY &lcCenturyOnorOff
Thanks William!
Thisform.release()
Tommy Tillman A+ NetWork+ MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform