Friday, February 17, 2006

From the Edge: Using GetTimeStamp.RBL Plugin
Section: Using Plugins
Chapter: Running R:BASE Your Way!
Platform: R:BASE 7.5 and V-8 Turbo for Windows
Supported Builds: R:BASE 7.5 (7.5.24.30214 or higher)
          R:BASE V-8 Turbo (8.0.12.30214 or higher)

Syntax:         

PLUGIN GetTimeStamp.RBL varname|FileName.ext

Where:

varname is the variable to return the text value of a
given file name

FileName.ext is the actual name and extension of file
name and extension, preceding by full path.

Notes:          

. Returned variable name and the exact file name with
  path must be separated by "|" pipe symbol

. Required GetTimeStamp.RBL PLUGIN and sample command
  file is available at:
  http://www.rupdates.com/rbg75 (R:BASE 7.5 for Windows)
  http://www.rupdates.com/rbg8 (R:BASE V-8 Turbo)

Example:

-- Start
CLEAR VAR vCaption,vPauseMessage,vFileTimeStampTxt, +
vFileTimeStamp,vFileName
SET VARIABLE vCaption TEXT = +
'Using GetTimeStamp PLUGIN with R:BASE 7.5'
SET VARIABLE vPauseMessage TEXT = NULL
SET VARIABLE vFileTimeStampTxt TEXT = NULL
SET VARIABLE vFileTimeStamp DATETIME = NULL
SET VARIABLE vFileName TEXT = 'C:\RBTI\RBG75\RBG75.EXE'
SET VARIABLE vCommandString = +
('PLUGIN GetTimeStamp.RBL vFileTimeStampTxt|'+.vFileName)
&vCommandString
SET VARIABLE vFileTimeStamp = .vFileTimeStampTxt
­- Do what you have to do with the vFileTimeStamp variable
CLS
SET VARIABLE vPauseMessage = +
('File Name:'+(CHAR(009))+(CHAR(009))&.vFileName+ +
  (CHAR(009))+(CHAR(013))+ +
 'File Date and Time:'+(CHAR(009))&(CTXT(.vFileTimeStamp)))
CLS
PAUSE 2 USING .vPauseMessage CAPTION .vCaption +
ICON APP +
BUTTON 'Yes, this is the R:BASE you have always wanted!' +
OPTION BACK_COLOR WHITE +
|MESSAGE_COLOR WHITE +
|MESSAGE_FONT_COLOR GREEN +
|BUTTON_COLOR WHITE
CLS
CLEAR VAR vCaption,vPauseMessage,vFileTimeStampTxt, +
vFileTimeStamp,vFileName
RETURN
-- End

A PDF document of this article is also available at:

From The Edge: http://www.razzak.com/fte
Topic: Using GetTimeStamp.RBL Plugin

Enjoy and make sure to have fun!

Very Best R:egards,

Razzak.
--- RBASE-L
=======================3D=======================3
D=
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
=======================3D=======================3
D=
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
=======================3D=======================3
D=
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
=======================3D=======================3
D=
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
=======================3D=======================3
D=

Reply via email to