Terry,

Ask and you shall receive!

Among many NEW COMMANDS, FEATURES and ENHANCEMENTS,
the upcoming UPGRADE version of TGRB2000 (ver 6.5++)
for Windows, currently under final beta, includes
the following:

====================================================
New CVAL Commands:
====================================================
. (CVAL('CurrentPrinter'))
Returns the name of currently printer.

. (CVAL('Printers'))
Returns the list of all installed printers.

. (CVAL('Drives'))
Returns the list of currently available drives,
including the mapped network or removable drives.

. (CVAL('ScreenSize'))
Returns the screen area in pixels.

. (CVAL('ClipboardText'))
Returns the contents of the Windows clipboard.

. (CVAL('UserID'))
Returns the Windows User ID

. (CVAL('NetUser'))
Returns the currently logged-in network user name.

. (CVAL('Computer'))
Returns the name of your computer.

. (CVAL('UserDomain'))
Returns the name of logged-in network domain.

====================================================
New GETVAL Functions
====================================================
. (GETVAL('GetDriveReady','driveletter'))

Example:
SET VAR vReady = (GETVAL('GetDriveReady','A'))
False if not ready, True if ready.

. (GETVAL('GetVolumeID','driveletter'))

Example:
SET VAR vVolumeID = (GETVAL('GetVolumeID','C'))
Will return the label name of drive C.

. (GETVAL('PlayAndWait','filepath'))

Example:
SET VAR vPlay = +
(GETVAL('PlayAndWait','c:\windows\media\tada.wav'))

Will play sound/wave file and waits for the sound to
finish before continue to a next command. This could
be a long time if the sound file is long. You would
want this if, for instance, you're writing an answering
machine application in R:BASE for Windows 6.5++.

. (GETVAL('PlayAndExit','filepath'))

Example:
SET VAR vPlay = +
(GETVAL('PlayAndExit','c:\windows\media\tada.wav'))

Will play sound/wave file and continue the next
command in a command file or EEP.

====================================================
New GETDATE Function (Built-In GUI Windows Calendar)
====================================================
. (GETDATE('Calendar Caption'))

For Example: (In a Command File, EEP or Custom Button)

SET VAR vGetDate = (GETDATE('Select Date'))

Will bring up the Windows GUI Calendar with today's
date circled in red. Either you could click on OK to
accept the circled date or click on any other date
on the calendar using the current month or scrolling
months!

The NEW GETDATE Function will return a valid date!

====================================================
New COMMAND
====================================================
. LAUNCH

Among the many new commands, a LAUNCH filename.ext
command has been introduced to invoke/run any
associated files along with required programs.

At the R> prompt or in a command file:

Example 01:
LAUNCH charts.VBS will invoke VBScript:Windows
Scripting Host Sample and will demonstrate how to
access Excel using the Windows Scripting Host in an
active R:BASE session.

or

LAUNCH c:\windows\samples\wsh\charts.vbs

Example 02:
LAUNCH myfile.DOC will invoke MSWord (if installed),
and let you edit the file in an active R:BASE session.

or

LAUNCH c:\mydocs\myfile.doc

Example 03:
LAUNCH myfile.WPD will invoke Corel WordPerfect
(if installed), and let you edit the file in an active
R:BASE session.

or

LAUNCH c:\mydocs\myfile.wpd

Example 04:
LAUNCH myfile.TXT will invoke MS NotePad, and let you
edit the file in an active R:BASE session.

or

LAUNCH c:\mydocs\myfile.txt

Example 05:
LAUNCH myfile.PDF will invoke Adobe Acrobat Reader, and
let you view the file in an active R:BASE session.

or

LAUNCH c:\mydocs\myfile.pdf

* NO NEED TO ZIP OUT or running batch files, etc.

* NO flashing screens (in and out of DOS)

The new LAUNCH command in R:BASE 2000 (ver 6.5++) will
execute ANY windows program as long as it is installed
and the file extension is associated in the registry.

====================================================
New EEP Restricted Commands
====================================================
. RHIDE
Modal form that can hide the background R> window

. RSHOW
Modal form that can bring back the background R>
window

====================================================
Enhanced EDIT USING command options ...
====================================================
. NOHEADER
Removes the system menu options from the Modal/MDI
forms

Example 01:

EDIT USING FormName CAPTION 'Form Caption' NOHEADER

Example 02:

EDIT USING FormName MDI AT 50,100,700,300 NOHEADER

Stay tuned for MORE GOODIES ...

Very Best Regards,

Razzak.


At 06:09 PM 4/20/2001 -0400, Terry Niefield wrote:
>>>>
Hi Is there any way to determine the current
printer durning an RBW2000 session without
using "Prnsetup"? For instance, is there a
(cval('printer')) kind of thing which returns
the name of the chosen print driver?


===================================-============================
R:BASE Developers's Conference: http://www.rbase.com/conference
Official R:BASE List Server: mailto:[EMAIL PROTECTED]
RBTI Events/Training: http://www.rbase2000.com/events
R:DCC Members: http://www.rbase2000.com/rdcc
================================================================
R:BASE, Oterro & R:Tango are registered trademarks of RBTI.
==================================-=============================

Reply via email to