Jump to content


Photo
- - - - -

SYSF command keywords/filters


1 reply to this topic

#1 snoopdogg_can_regen

snoopdogg_can_regen

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 22 March 2006 - 12:54 AM

are there any list available for SYSF command keywords? all i have is the create/delete and chkfile keywords...

i'm trying to figure out if sysf() can check a textfile that is currently open/in use - via notepad. any suggestions?

#2 Cory Gaw

Cory Gaw

    Newbie

  • Members
  • Pip
  • 4 posts
  • Gender:Male
  • Location:Ottawa, Canada

Posted 30 March 2006 - 03:22 PM

Here is a listing of the SYSF commands that i currently have documented. I know there are a couple more that i'm researching, but at least this is a start!

1. To create a new file:

SYSF( &#@CREATE, $file_name, key_length, record_length )

Remember…. if you’re creating an ASCII file, the key length is zero


2. To create a new file in Btrieve:

SYSF(&#@CREATE,{filename},&#@BTRV,{record_length},'{key_length}@1')
where
{filename} is the physical file you want to create,
{record_length} is the record length displayed in @F
{key_length} is the key length displayed in @F

You need to use this form of the command because B-Trieve supports multiple indexes per file, so you need to specify where the primary key index lives (which is the {key_length}@1 bit)


3. To delete an existing file:

SYSF( &#@DELETE, $file_name )


4. To Check if file currently exists:

SYSF( &#@CHKFILE , $file_name , #A )

#A is “0” if file exists, or “1” if it does not exist


5. To rename an existing file:

SYSF(&#@RENAME,$FROMFILE,$TOFILE)


6. To retrieve system information from @SYSLOOK:
SYSF(9,,#VAR1,$VAR1,$VAR2,$VAR3,$VAR4,$VAR5,$VAR6)

#VAR1 = PRO-IV Version
$VAR1 = PRO-IV Release No.
$VAR2 = Release Date
$VAR3 = Customer Name
$VAR4 = Unknown
$VAR5 = Serial Number
$VAR6 = Enabled Options

7. To redraws the boarder around the current window. (Not too usefull!!!)

SYSF(17)


8. To retrieve the current PID status:

SYSF(21,$PID,#RESULT)

0 = no such PID, 1 = PID exists.


9. Get unix environment var $ENV and return in $RESULT

SYSF(22,$ENV,$RESULT)



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users