Einzelnen Beitrag anzeigen
Alt 12.10.2012, 01:19   #127
leecher
Moderator
GET_DB

E r g e b n i s / R e s u l t

Prompts the user for a database filename.

B e s c h r e i b u n g / D e s c r i p t i o n

This procedure prompts the user for a database file name.

Only .DF .IF and .MF files are accepted and must exist in the Open Access
searching order.

The user may press <search:F4> to obtain the standard file search window.
Delete, Rename and Copy are allowed from inside the <search:F4> window.

A default filename may be passed to the routine. This is displayed to
the user, who may press <do:F10> to accept it or type a new filename
or press <search:F4>.

S y n t a x

Code:
string = call('GET_DB' , default_filename)
P a r a m e t e r

default_filename - The procedure accepts a default filename that will be
used in the filename prompt. This parameter is of
type STRING and can be blank.

An invalid parameter, for example, calling the
procedure with a date, will cause an error message to
be displayed and a zero length string to be returned.

R e t u r n s

This procedure returns a variable of type STRING.

The return value is a nickname:filename string. The file extension
will not be returned, so that a user can enter a index file (.IF) and
the true database name would be returned.

B e i s p i e l / E x a m p l e

Code:
attach 'FILE'
a = 'MYFILE.DF'
a = call ("GET_DB" , a)
put a 
detach 'FILE'
Q u e r v e r w e i s / C r o s s R e f e r e n c e
DISP_DB
leecher ist offline   Mit Zitat antworten