4glworks reference: Shell utilities

exec_appl

file ishll.4gl
declaration
function exec_appl(cmdline, ask_char)
    define cmdline	char(80),
	   ask_char	char(1)
returns nothing
purpose Executes an external application, optionally prompting the user to hit a key before continuing
example none
notes none

exec_sh

file ishll.4gl
declaration
function exec_sh(pr)
    define pr	char(10)
returns nothing
purpose Prompts for a shell command and invokes a shell to execute it
example none
notes none

file_input

file ishll.4gl
declaration
function file_input(fnam, path)
    define fnam,
	   path	char(70)
returns filename, char(64), file name entered by the user.
purpose Opens a modal window requesting the user to enter a file name.
example none
notes
  • useful in conjunction with services that open files for reading or writing
  • fname allows to set a suggested file name

filepath

file cshll.4gl
declaration
function filepath(path, file)
    define path	char(64),
	   file	char(64)
returns file, char(128), constructed absolute path.
purpose builds an absolute path out of the supplied file name and path
example none
notes none

filesplit

file cshll.4gl
declaration
function filesplit(path, d, n, e)
    define path		char(128),
    	   d, n ,e	smallint
returns basename, char(64), file name extracted form full path
purpose The 4glWorks equivalent of basename (1)
example none
notes none

multi_file

file ishll.4gl
declaration
function multi_file(path, ln, buf)
    define
	path	char(70),
	ln	smallint,
	buf	char(40)
returns selection, char(80), user selected file list
purpose A multiple selection file name picklist
example none
notes none

tmp_filename

file cshll.4gl
declaration
function tmp_filename(p)
    define p	char(3)
returns file, char(64), temporary file name
purpose returns a temporary file name
example none
notes none

uni_file

file ishll.4gl
declaration
function uni_file(path, buf)
    define
	path	char(70),
	buf	char(40)
returns file, char(40), user selected file
purpose A single selection file name picklist
example none
notes none


Please address questions or comments to marco greco
(last updated Thu, 28 March 2002 16:08:54 GMT)