home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
utilities
/
editors
/
textra
/
scripts
/
date.textra
< prev
next >
Wrap
Text File
|
1994-06-24
|
812b
|
37 lines
/* Nick Didkovsky, 10-Oct-93
Insert date into Textra, faster version.
12-Oct-93 MH Added check for at least V1.13 (min req'd for
use of a standalone 'address Textra' command)
*/
options results
address command
"date >t:TheDate"
address Textra
rex = 0; result = "NOTSUPPORTED"
textraversion
parse var result maj min rex
if (result == "NOTSUPPORTED") | (rex < 5) then do
notify "Textra V1.13 or later required for this script."
exit
end
openresult = OPEN('infile','t:TheDate','Read')
IF openresult
THEN DO
DateString = Readln('infile')
closeresult = close('infile')
IF ~(closeresult)
THEN notify 'trouble closing date file'
Parse var DateString WeekDay ' ' MonthDayYear ' ' TimeOfDay
text MonthDayYear
END
ELSE notify 'Could not read date file'