Here is a list of the changes made to KEDIT for Windows 1.5 in Service Level 2, which was released in January 1997. All of the changes in Service Level 2 are also included in KEDIT for Windows 1.5 Service Level 3. KEDIT for Windows 1.5 was originally released, as KEDIT for Windows 1.5 Service Level 1, in June, 1996.
KEDIT for Windows 1.5 Service Level 2 was released in January, 1997. Most of the changes since Service Level 1 (the version released in June, 1996) involve bug fixes. There are, however, a few minor enhancements. These enhancements will primarily be of interest to advanced users of KEDIT who are developing their own macros or KEDIT Language Definition files.
'DIALOG /Enter your password/ EDITFIELD PASSWORD'The PASSWORD operand is only valid when the EDITFIELD operand is also used, and it must come after the EDITFIELD operand.
:MATCH do end+do if end+if
Searches for a file in the same directories KEDIT searches when looking for a macro. Returns the fully qualified name of the resulting file, or the null string if an error is encountered or the file can't be found. If 'fileid' has no extension then 'defaultextension', if specified, is assumed.
Returns the number of lines per page, and the number of columns per page, used for print operations, based on the currently selected printer, font, and margins. If KEDIT cannot determine the result, -1 will be returned for the lines and/or columns. -1 will always be returned if PRINTER WINDOWS is not in effect, and can also be returned if, for example, no printers are installed.
Returns the fully-qualified name of your Windows directory, and of your Windows system directory.
TIME.5 is new. It returns the date using a 4-digit year, in the format yyyy-mm-dd.
When DATECONV() is used to convert a date that is specified using a 2-digit year, it previously assumed that the date fell in the current century. Beginning with KEDIT for Windows 1.5 Service Level 2, it now assumes that the date falls within a 100 year sliding window starting at
(current year - 50)and ending at
(current year + 49)For example, in 1997, Service Level 2 converts 2-digit years to 4-digit years in the range 1947-2046. So, in 1997, with
DATECONV('12/17/02','U', 'N')Service Level 1 yields '16 Dec 1902', but Service Level 2 yields '16 Dec 2002'. As another example, in the year 2000, 2-digit years will be converted by Service Level 2 to 4-digit years in the range 1950-2049.
DATECONV('12/17/96','U', 'N')will yield '17 Dec 2096' if earlier versions of KEDIT are used in the year 2000, but with KEDIT for Windows 1.5 Service Level 2 or later will yield '17 Dec 1996'.
Dates returned by the KEXX DOSDIR() function now use 4-digit years in the format mm/dd/yyyy. (This is a change from earlier versions of KEDIT for Windows, in which DOSDIR() returned dates in the format mm/dd/yy.)
SHORTNAME(fileid) takes the name of an existing file, and returns the short, MS-DOS style, form of the fileid. That is, all components of the fileid are uppercased and are converted to their corresponding short 8.3 format alias.
LONGNAME(fileid) takes the name of an existing file, and returns the long, Windows 95/98/NT/2000/Me/XP style, form of the fileid. That is, all components of the fileid that are 8.3 short format aliases are converted to the correct case and to the long Windows 95/98/NT/2000/Me equivalent.
For example:
SHORTNAME('c:\program files\keditw\readme.txt')might yield
C:\PROGRA~1\KEDITW\README.TXTwhile
LONGNAME('c:\progra~1\keditw\alongn~1')might yield
C:\Program Files\keditw\a long nameIn the 16-bit version of KEDIT for Windows, for both SHORTNAME() and LONGNAME(), the fileid of an existing file is returned unchanged.
In both the 16- and 32-bit versions, if the fileid involved does not exist, both SHORTNAME() and LONGNAME() return the null string.