At 04:55 PM 11/9/2004 -0500, Joel Solomon wrote:

What is a good way to set up a routine to select
a drive/directory/file tree that can be used to
import a file to gateway?


Joel,

Use the LoadDirectoryName or LoadFileName Plugins
to achieve that goal eloquently!

Here's how:

Example 01: (Using LoadDirectoryName Plugin)

SET VAR vFolderName TEXT = NULL
SET VAR vCaption TEXT = 'Select Directory/File'

LABEL GetFolderName
  CLS
  PLUGIN LoadDirectoryName.RBL vFolderName +
  |TITLE  Select Folder for Database Backup
  IF vFolderName = '[Esc]' THEN
     GOTO Done
  ENDIF
  IF vFolderName IS NULL THEN
     PAUSE 2 USING 'Folder NOT Selected!' +
     CAPTION .vCaption +
     ICON STOP
     GOTO GetFolderName
  ENDIF

  -- Do what you have to do here ...

LABEL Done
  CLEAR VAR vFolderName, vCaption
  RETURN

Running R:BASE Your Way! (Part 9) included with
Fall 2004 R:BASE Developers' Conference CD, includes
a complete routine to backup your database and more,
using the LoadDirectoryName Plugin!

You may modify the routine to achieve your goal to
automate the entire process.

Example 02: (Using LoadFileName Plugin)

From The Edge: http://www.razzak.com/fte
(Powered by R:WEB Suite)

Topic:
Using LoadFileName.RBL Plugin in R:BASE 7.x for Windows

Enjoy and make sure to have fun!

Very Best R:egards,

Razzak.



Reply via email to