Subject Re: SET HOURS
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Sat, 22 Jul 2023 05:25:54 -0700
Newsgroups dbase.getting-started

On 7/22/2023 5:13 AM, Tom wrote:
> Good morning all,
>
> OLH says:
>
> The following statements convert a DateTime value to a string using
> DTTOC (DateTime to Character) and  extracts the date and time strings.
> *
> The following examples assume SET HOURS is set to 12, thereby displaying
> the AM/PM indicator. *** <<< Note <<< ***
> *
> d=DATETIME()  // Yields 08/17/00 04:25:45 PM
> d1=DTTOC(d)  //Yields 08/17/00 04:25:45 PM as a Character string
> d2=left(d1,8)  //Yields 08/17/00 as a Character string
> d3=right(d1,11) //Yields 04:25:45 PM as a Character string
>
> My question is WHERE is the current SET HOURS value stored on my
> computer and how do I find out what it is and, more importantly, where
> is it stored on your computer and how do I find out what it is?
>
> I do not see this information in my Ini file or any place to set this in
> the "properties" form from the main menu.

The value of SET HOURS is, if it is not modified, typically stored in
your PLUS.INI file.

In the Command Window:
     ? _app.iniFile

That's where the PLUS.INI file is that is used by dBASE (or your
application, although in a .exe file you would need to use something
like: msgbox( "Ini File: " + _app.iniFile ) )

Typically it will be something like:
    C:\Users\user_name\AppData\Local\dBASE\dBASE2019\Bin\PLUS.INI

Where "user_name" is the windows Login name for the user.

Ken

--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
dBASE DOS to Windows Tutorial:
http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm