At 04:19 PM 7/17/2013, [email protected] wrote:
Am I missing something? The DIR command confirms the existence of
MAINDATA.ALL. However, the CHKFILE function returns a "0" when I
reference the file.
Try the following exercise with two examples and see what you get.
-- Example 01 (Using a Variable)
SET VAR vTest INTEGER = NULL
SET VAR vTest = (CHKFILE('MainData.all'))
SHOW VAR vTest
-- Example 02 (Without Using a Variable)
IF (CHKFILE('MainData.all')) <> 0 THEN
PAUSE 2 USING 'File Exists!' +
CAPTION 'CHKFile Function' ICON CONFIRM +
BUTTON ' Press any key to continue ...' +
OPTION MESSAGE_FONT_NAME Tahoma +
|MESSAGE_FONT_COLOR GREEN +
|MESSAGE_FONT_SIZE 11 +
|THEMENAME Longhorn
ELSE
PAUSE 2 USING 'File Does Not Exist!' +
CAPTION 'CHKFile Function' ICON WARNING +
BUTTON ' Press any key to continue ...' +
OPTION MESSAGE_FONT_NAME Tahoma +
|MESSAGE_FONT_COLOR RED +
|MESSAGE_FONT_SIZE 11 +
|THEMENAME Longhorn
ENDIF
RETURN
Have fun!
Very Best R:egards,
Razzak.
www.rbase.com
www.facebook.com/rbase
--
30+ years of continuous innovation!
15 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--
--- RBASE-L
================================================
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)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
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.
================================================