Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dec Points for Average in report.
Message
From
01/12/1997 21:10:16
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
26/11/1997 08:09:19
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00061885
Message ID:
00063191
Views:
71
>HKEY_CURRENT_USER\Control Panel\International > >There's a good registry class in the UT's download section that provides >all necessary methods to deal with the registry from VFP (in an elegant >mode :)). > >As for many other registry settings, the corresponding registry records may >not be found if the default value was not change. This sounds quite good - if the default has not changed, just keep it, since the Windows and VFP defaults are the same. I've dealt with this by keeping an environment variable stating the language used, and the corresponding keyboard and codepage simply follow, and depending on the value of this variable I've set the point, separator, date format etc in the app init - so it doesn't have to be done for every report. If you have a decimal comma and a period for thousands separator, and use an European keyboard, it already has a decimal comma in the keyboard driver, and all the decimal separators appear as commas in forms, reports, even in str() function. What may get wrong is if the user switches keyboard layout during data entry - but that may be dealt with in the textboxes with numeric ControlSource by simply discarding the set("separator") character and stuffing the proper set("point") into the keyboard buffer in the KeyPress event code.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform