date format in datagrid  
Author Message
RavindraPatil





PostPosted: Visual FoxPro General, date format in datagrid Top

Hello everybody,

I am using datagrid control with two date fields. I have set the date format to italian (dd-mm-yyyy). When I run the forn within foxpro it works as desired. that eans the dates in grid and reports generated are in desired format.

But

when I build the exe and execute it standalone, the dates in datagrid and in reports are displayed in american format (mm/dd/yyyy), but in textbox controls the dates are shown in italian format. I want to display the dates in italian format in all the cases when i execute the exe standalone.

can anybody help me

thanks in advance.



Visual FoxPro1  
 
 
MarciaAkins





PostPosted: Visual FoxPro General, date format in datagrid Top

But

when I build the exe and execute it standalone, the dates in datagrid and in reports are displayed in american format (mm/dd/yyyy), but in textbox controls the dates are shown in italian format. I want to display the dates in italian format in all the cases when i execute the exe standalone.

can anybody help me

thanks in advance.

SET DATE ITALIAN

If your forms have a private data session, you will need to set this in the form's Load() because SET DATE is scoped to the current data session.

You may want to create an environment setting object that you can add to your base form class in its Load and then you no longer have to thing about it.



 
 
RavindraPatil





PostPosted: Visual FoxPro General, date format in datagrid Top

Dear Marcia G. Akins,

U r simply great ! your suggesstion worked. thank u very very much.

May know your email id plz

-Ravindra


 
 
MarciaAkins





PostPosted: Visual FoxPro General, date format in datagrid Top

May know your email id plz

No, you may not. I dedicate a significant amount of time to on-line support on Foxite( http://www.foxite.com), the Universal Thread (http://www.universalthread.com/), Tek-Tips (http://www.tek-tips.com) and here. For these reasons I never answer unsolicited requests for free help directly. Please post your question on one of the above named forums and you will get a lot of help very quickly I can assure you.

All of these are completely free and if you post your questions there not only would you get my opinion (assuming I knew the answer), but you would also get the benefit of different answers from other people. Second, and even more importantly, by posting a question there, other people can share in, and learn from, the exchange of knowledge and ideas that your question generates. Finally, all of these forums maintain archives of questions and yours have may already have been asked many times before and there may well be a complete solution already available.