home *** CD-ROM | disk | FTP | other *** search
- Integrated Development Library for Clipper
- function list by category
- Integrated Development Corp.
- 94 Forrest Street
- Plaistow, NH 03865
- (603)382-1313
-
- Over 300 functions in 100% assembly language - fasssssssssst
- ------------------------------------------------------------
- 35 - CHARACTER:
-
- all_trim()........remove leading/trailing blanks from string
- at_last().........position of last occurrence of a character
- at_next().............find n'th occurrence of char in string
- bit_strip().........remove high bit from all chars in string
- cap_first()..........capitalize first letter, rest lowercase
- capitalize()............capitalize first letter of each word
- center()...........add leading spaces to center in <n> width
- chr_count()..........number of occurrences of char in string
- chr_found()..........test for chars in one string in another
- chr_swap().......swap one character with another in a string
- comma()....................add commas to a string of numbers
- decode().....................................decode a string
- encode().....................................encode a string
- isalpha()..................check if all characters are alpha
- isascii()..................check if all characters are ascii
- isdigit()................check if all characters are numbers
- islower()..............check if all characters are lowercase
- isnum()..................check if all characters are numeric
- isprint()..............check if all characters are printable
- isstate()......................verify two letter state codes
- isupper()..............check if all characters are uppercase
- lead_char()..........replace leading blanks with a character
- left().............extract leftmost <n> characters of string
- ljust()................................left justify a string
- reverse()........reverse order of the characters in a string
- right().........extract rightmost <n> characters of a string
- rjust().............right justify a string within <n> spaces
- soundex()....................create a soundex encoded string
- str_center()...................center a string within spaces
- str_xpand().......insert space between each char in a string
- str_xtract()............extract tokens from delimited string
- tab_xpand()......expand tabs with spaces to proper tab stops
- trail_char()...............replace trailing blanks with char
- trim_punct().........remove leading and trailing punctuation
- untrim()............add spaces to expand string to <n> width
-
- 4 - DATABASE:
-
- hdr_size()......................get DBF header size in bytes
- isdbf()........is there a DBF open in the selected work area
- lupdate()..............last update date of selected database
- rec_size()......................get DBF record size in bytes
-
- 7 - DATE:
-
- date_type()..............get SET DATE TO setting as a string
- dtow().......return date as string in format month day, year
- islastday()................is date the last day of the month
- isleap()............................is date/year a leap year
- num2day()..................convert number 1-7 to name of day
- num2month().....................convert number to month name
- num_days().........................number of days in a month
-
- 1 - DEBUGGING:
-
- int3()........................produces an int 3 for debugger
-
- 26 - DISK:
-
- chdir()...................change to a specified subdirectory
- clust_size().................get disks cluster size in bytes
- cur_dir().........................get current directory name
- cur_drive().............currently logged drive letter as "d"
- del_volume().............................delete volume label
- disk_size()...........................get disk size in bytes
- disk_space()...............get available disk space in bytes
- drive_str()............get string of available drive letters
- drives()...................get number of valid drive letters
- fre_clusts()..........get number of free clusters on a drive
- get_volume()................................get volume label
- isdir()............................see if a directory exists
- isdisk()......................check if drive letter is valid
- isdrive().........................see if disk drive is ready
- isfixed().......................see if drive is a fixed disk
- isfloppy().....................see if drive is a floppy disk
- media_type()..................get disk media descriptor byte
- mkdir()................................create a subdirectory
- removeable()....................is media in drive removeable
- rmdir()................................remove a subdirectory
- setlogical()....avoid DOS 'insert disk for drive XX message'
- sect_clust()...................number of sectors per cluster
- sect_size()...........................get disk's sector size
- set_drive().....................set the current logged drive
- set_volume()...........................set volume label name
- tot_clusts().........get total number of clusters on a drive
-
-
- 18 - PRINTER:
-
- islpt().......................check for LPT port's existence
- isprinter().............check if printer is online and ready
- isqueue()............................is PRINT.COM installed?
- lprint()....................print string to any printer port
- lprintln()..............print string to printer with a CR/LF
- lpt_reset()...........reset printer ports after an lpt_set()
- lpt_set()...................set lpt port to another lpt port
- lpt_swap()............................swap LPT ports 1 and 2
- prn_reset()..........reset a printer to its default settings
- prn_stat()....................................printer status
- prtscr().................print the current screen to printer
- q_cancel()...........cancel all files currently in the queue
- q_f_cancel()................cancel a file in the print queue
- q_file().............get current file being printed in queue
- q_hold()...............................pause queued printing
- q_restart()..........................restart queued printing
- q_status()......................check print queue for errors
- q_submit().................submit a file for queued printing
-
-
- 35 - SCREEN:
-
- abox()...........................display BOX with attributes
- aprint()......................print a string with attributes
- areplicate()...........replicate a character with attributes
- ascroll()...........scroll portion of screen with attributes
- clock()...........display a ticking clock anywhere on screen
- cls()......................................fast clear screen
- csr_bot()...............get/set the cursors bottom scan line
- csr_off()....................................turn cursor off
- csr_on()......................................turn cursor on
- csr_put()................move the DOS cursor to location X,Y
- csr_set()............set bottom and top scan lines of cursor
- csr_top()..................get/set the cursors top scan line
- frame_scrn()........................frame a screen in memory
- get_attr()..............get attribute from screen at pos X,Y
- get_mode()............................get current video mode
- get_page()............................get current video page
- info_scrn()..........get information about a screen variable
- init_scrn()............initialize a virtual screen in memory
- iscga()...........................see if video card is a CGA
- isega().............................return .T. if ega in use
- ismono()..................see if video adapter is monochrome
- isvga().................return .T. if video adapter is a vga
- max_col()...............get screen's rightmost column number
- max_row()....................get screen's highest row number
- puts_scrn()..................print string to screen variable
- rest_scrn().................restore the screen from a memvar
- save_scrn().......................save portion of the screen
- scr_read()....................read characters off the screen
- set_attr()..................set screen attributes at pos X,Y
- set_mode()............................set current video mode
- set_page()............................set current video page
- title_scrn().................put a title on a virtual screen
- vid_type()..............return video card type as an integer
- vreplicate()........replicate char vertically with attribute
- un_clock()...........................uninstall ticking clock
-
- 16 - KEYBOARD:
-
- kbd_alt()................................Alt key depressed ?
- kbd_capl()............................Caps Lock toggled on ?
- kbd_ctrl()..............................Ctrl key depressed ?
- kbd_extend().......see if bios supports an extended keyboard
- kbd_ins().....................................insert key on?
- kbd_lshift().....................Left Shift key depressed ?
- kbd_numl().............................Num Lock toggled on ?
- kbd_rshift().....................Right Shift key depressed ?
- kbd_scroll()......................scroll lock key depressed?
- kbd_shift()............................Shift key depressed ?
- kbd_stat()..............................current shift status
- key_stat()..............display status of NUM,CAP,and INSERT
- isinsert().................check if insert mode is on or off
- set_insoff()............................set insert state off
- set_inson()..............................set insert state on
- un_key()......................uninstall keyboard status line
-
- 47 - FILE:
-
- f_bof().....................................is file at BOF()
- f_bot().................position file pointer at end of file
- f_changed()............see if file changed since last backup
- f_close().......................................close a file
- f_copy()................copy from one file handle to another
- f_copy_f()................copy from one file name to another
- f_count()...........count number of files matching file spec
- f_create().............create a file with optional attribute
- f_createf().......create a file, will not erase if it exists
- f_dupe().............................duplicate a file handle
- f_eof().....................................is file at EOF()
- f_erase().........................................erase file
- f_error().......................get file function error code
- f_first()...........................find first matching file
- f_getdate().........................read a file's date stamp
- f_gettime().........................read a file's time stamp
- f_hide()................change a file's attributes to hidden
- f_len()..............get file length of an already open file
- f_next().............................find next matching file
- f_open().....................open a file for reading/writing
- f_prot()..................change file attribute to read only
- f_read()........................read in a string from a file
- f_readb().........................read in a byte from a file
- f_readln()...............................read line from file
- f_rename().......................................rename file
- f_rep().......................replicate characters to a file
- f_seek()...........position file pointer to specified offset
- f_setdate().......................change a file's date stamp
- f_settime().......................change a file's time stamp
- f_tell()...........................get file pointer position
- f_top()...........position file pointer at beginning of file
- f_unhide().....................unhide a file that was hidden
- f_unprot()...............unprotect a file that was protected
- f_update()...................update a file's directory entry
- f_write()...........................write a string to a file
- f_writeb()................................write byte to file
- f_writeln()..................write string to file with CR/LF
- file_size()........................get a files size in bytes
- get_fattr()..................get a file's current attributes
- handles()....................get number of file handles left
- isferror()............check if a file function error occured
- isfile()...........................does specified file exist
- ishandle()......................see if a handle is available
- max_handle().........total handles available to this process
- next_hand().................get next available handle number
- set_fattr()..............................set file attributes
- set_handle().......increase number of file handles up to 255
-
-
- 8 - ERROR HANDLING:
-
- clr_error().......................clear Clipper's error flag
- clr_ferror()..............clear the file function error flag
- get_error()...........get most recent operating system error
- in_int24()..........install critical error interrupt handler
- int24_num()...................get last critical error number
- iserror().............has an operating system error occurred
- isint24()............check if interrupt handler is installed
- un_int24()..............uninstall the critical error handler
-
-
- 38 - ENVIRONMENT:
-
- alternate()................character status of set alternate
- background().......get current SET COLOR TO background color
- bell()..........................character status of set bell
- confirm()....................character status of set confirm
- console()....................character status of set console
- decimals()............return current set decimals to setting
- default().................get current SET DEFAULT TO setting
- deleted()....................character status of set deleted
- delimiters()......................current delimiters setting
- delims()..................character status of set delimiters
- escape()......................character status of set escape
- exact()........................character status of set exact
- exclusive()................character status of set exclusive
- fix()..........................character status of set fixed
- fkey().................get string assigned to a function key
- foreground().......get current SET COLOR TO foreground color
- get_color()............current SET COLOR TO value as integer
- intense()..................character status of set intensity
- isalternat().................logical status of set alternate
- isbell()..........................logical status of set bell
- isconfirm()....................logical status of set confirm
- isconsole()....................logical status of set console
- isdeleted()....................logical status of set deleted
- isdelims()..................logical status of set delimiters
- isescape()......................logical status of set escape
- isexact()........................logical status of set exact
- isexclusiv().................logical status of set exclusive
- isfix()..........................logical status of set fixed
- isintense()..................logical status of set intensity
- isprinton()......................logical status of set print
- isscore()...................logical status of set scoreboard
- isunique()......................logical status of set unique
- margin()................return current set margin to setting
- path().......................get current SET PATH TO setting
- printon()......................character status of set print
- score()...................character status of set scoreboard
- set_color().............................set foreground color
- unique()......................character status of set unique
-
-
- 8 - COMM PORT:
-
- com_in()................input a character from a serial port
- com_init()............................initialize serial port
- com_out().....................send a string to a serial port
- com_reset()............reset the com ports after a com_set()
- com_set()..............set com port to another physical port
- com_stat().......................get serial port status word
- com_swap()............................swap COM ports 1 and 2
- iscom().......................check for COM port's existence
-
-
- 7 - MEMORY:
-
- allocate()................allocate memory outside of Clipper
- deallocate().....deallocate memory allocated with allocate()
- dos_mem().................get amount of DOS memory installed
- exp_mem()............get amount of expanded memory installed
- ext_mem()............get amount of extended memory installed
- fre().............................amount of available memory
- isems().....................see if expanded memory installed
-
-
- 24 - SYSTEM:
-
- computer().............................name of computer type
- crash()....................................hang the computer
- dos_ver()................get operating system version number
- get_args()........................get command line arguments
- gete()..............................get environment variable
- inp()......................................input from a port
- ismath()......................is math coprocessor installed?
- isverify()....................check if DOS verify flag is on
- last_drive()..........get char. of lastdrive = in config.sys
- math_chip()......what kind of math coprocessor is installed?
- num_args()..................number of command line arguments
- outp()...............................output a byte to a port
- peek()....................read a byte from a memory location
- poke()...................store a byte into a memory location
- processor()............................get type of processor
- set_time()..................set the computer's internal time
- set_date()..................set the computer's internal date
- save_timer()........................save the timer interrupt
- rest_timer().....................restore the timer interrupt
- rom_date()......................get computer's rom bios date
- sound()...............produce a tone on the computer speaker
- terminate().............quit program with an errorlevel code
- timeh()............get time string in hundredths of a second
- verify()..........................set DOS verify flag on/off
-
-
- 11 - LOGICAL:
-
- ltob().................convert logical var to "1"-"0" string
- ltoc().............convert logical var to ".T."-".F." string
- ltod().............convert logical var to "Up"-"Down" string
- ltof()..............convert logical var to "On"-"Off" string
- ltol()..........convert logical var to "Right"-"Left" string
- lton().................convert a logical to a numeric 1 or 0
- ltos()................convert a logical variable to a string
- ltow()..........convert logical var to "True"-"False" string
- ltoy()..............convert logical var to "Yes"-"No" string
- ntol()............................convert numeric to logical
- stol().........................convert a string to a logical
-
-
- 6 - BIT FIDDLING:
-
- and().............................bitwise and of two numbers
- not()...............................bitwise not of a numbers
- or()...............................bitwise or of two numbers
- shl()..............logically shift a number left by <n> bits
- shr().............logically shift a number right by <n> bist
- xor()....................bitwise exclusive or of two numbers
-
- 5 - BINARY:
-
- bin2num()....................convert binary string to number
- byte2bin().....................convert byte to binary string
- dec2hex()......................convert decimal number to hex
- hex2dec()......................convert hex string to integer
- num2bin()....................convert number to binary string
-
-
- 19 - INTERRUPT:
-
- interrupt()...................execute DOS or BIOS interrupts
- off()..................get offset address of memory variable
- reg_ax()....load/get register value for a DOS/BIOS interrupt
- reg_bx()....load/get register value for a DOS/BIOS interrupt
- reg_cx()....load/get register value for a DOS/BIOS interrupt
- reg_dx()....load/get register value for a DOS/BIOS interrupt
- reg_ah()....load/get register value for a DOS/BIOS interrupt
- reg_bh()....load/get register value for a DOS/BIOS interrupt
- reg_ch()....load/get register value for a DOS/BIOS interrupt
- reg_dh()....load/get register value for a DOS/BIOS interrupt
- reg_di()....load/get register value for a DOS/BIOS interrupt
- reg_si()....load/get register value for a DOS/BIOS interrupt
- reg_es()....load/get register value for a DOS/BIOS interrupt
- reg_ds()....load/get register value for a DOS/BIOS interrupt
- reg_cf()....check status of carry flag after a DOS interrupt
- reg_flags().........check status of flags after an interrupt
- set_seg().........get the segment/offset address of a string
- seg().................get segment address of memory variable
- string().....................get string at specified address
-
-
- ** END **