home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / IDL_LIB.ZIP / IDLCATS.TXT next >
Encoding:
Text File  |  1988-02-18  |  19.9 KB  |  391 lines

  1.            Integrated Development Library for Clipper
  2.                     function list by category
  3.                   Integrated Development Corp.
  4.                         94 Forrest Street
  5.                        Plaistow, NH  03865
  6.                           (603)382-1313
  7.  
  8. Over 300 functions in 100% assembly language - fasssssssssst
  9. ------------------------------------------------------------
  10. 35 - CHARACTER:
  11.  
  12. all_trim()........remove leading/trailing blanks from string
  13. at_last().........position of last occurrence of a character
  14. at_next().............find n'th occurrence of char in string
  15. bit_strip().........remove high bit from all chars in string
  16. cap_first()..........capitalize first letter, rest lowercase
  17. capitalize()............capitalize first letter of each word
  18. center()...........add leading spaces to center in <n> width
  19. chr_count()..........number of occurrences of char in string
  20. chr_found()..........test for chars in one string in another
  21. chr_swap().......swap one character with another in a string
  22. comma()....................add commas to a string of numbers
  23. decode().....................................decode a string
  24. encode().....................................encode a string
  25. isalpha()..................check if all characters are alpha
  26. isascii()..................check if all characters are ascii
  27. isdigit()................check if all characters are numbers
  28. islower()..............check if all characters are lowercase
  29. isnum()..................check if all characters are numeric
  30. isprint()..............check if all characters are printable
  31. isstate()......................verify two letter state codes
  32. isupper()..............check if all characters are uppercase
  33. lead_char()..........replace leading blanks with a character
  34. left().............extract leftmost <n> characters of string
  35. ljust()................................left justify a string
  36. reverse()........reverse order of the characters in a string
  37. right().........extract rightmost <n> characters of a string
  38. rjust().............right justify a string within <n> spaces
  39. soundex()....................create a soundex encoded string
  40. str_center()...................center a string within spaces
  41. str_xpand().......insert space between each char in a string
  42. str_xtract()............extract tokens from delimited string
  43. tab_xpand()......expand tabs with spaces to proper tab stops
  44. trail_char()...............replace trailing blanks with char
  45. trim_punct().........remove leading and trailing punctuation
  46. untrim()............add spaces to expand string to <n> width
  47.  
  48. 4 - DATABASE:
  49.  
  50. hdr_size()......................get DBF header size in bytes
  51. isdbf()........is there a DBF open in the selected work area
  52. lupdate()..............last update date of selected database
  53. rec_size()......................get DBF record size in bytes
  54.  
  55. 7 - DATE:
  56.  
  57. date_type()..............get SET DATE TO setting as a string
  58. dtow().......return date as string in format month day, year
  59. islastday()................is date the last day of the month
  60. isleap()............................is date/year a leap year
  61. num2day()..................convert number 1-7 to name of day
  62. num2month().....................convert number to month name
  63. num_days().........................number of days in a month
  64.  
  65. 1 - DEBUGGING:
  66.  
  67. int3()........................produces an int 3 for debugger
  68.  
  69. 26 - DISK:
  70.  
  71. chdir()...................change to a specified subdirectory
  72. clust_size().................get disks cluster size in bytes
  73. cur_dir().........................get current directory name
  74. cur_drive().............currently logged drive letter as "d"
  75. del_volume().............................delete volume label
  76. disk_size()...........................get disk size in bytes
  77. disk_space()...............get available disk space in bytes
  78. drive_str()............get string of available drive letters
  79. drives()...................get number of valid drive letters
  80. fre_clusts()..........get number of free clusters on a drive
  81. get_volume()................................get volume label
  82. isdir()............................see if a directory exists
  83. isdisk()......................check if drive letter is valid
  84. isdrive().........................see if disk drive is ready
  85. isfixed().......................see if drive is a fixed disk
  86. isfloppy().....................see if drive is a floppy disk
  87. media_type()..................get disk media descriptor byte
  88. mkdir()................................create a subdirectory
  89. removeable()....................is media in drive removeable
  90. rmdir()................................remove a subdirectory
  91. setlogical()....avoid DOS 'insert disk for drive XX message'
  92. sect_clust()...................number of sectors per cluster
  93. sect_size()...........................get disk's sector size
  94. set_drive().....................set the current logged drive
  95. set_volume()...........................set volume label name
  96. tot_clusts().........get total number of clusters on a drive
  97.  
  98.  
  99. 18 - PRINTER:
  100.  
  101. islpt().......................check for LPT port's existence
  102. isprinter().............check if printer is online and ready
  103. isqueue()............................is PRINT.COM installed?
  104. lprint()....................print string to any printer port
  105. lprintln()..............print string to printer with a CR/LF
  106. lpt_reset()...........reset printer ports after an lpt_set()
  107. lpt_set()...................set lpt port to another lpt port
  108. lpt_swap()............................swap LPT ports 1 and 2
  109. prn_reset()..........reset a printer to its default settings
  110. prn_stat()....................................printer status
  111. prtscr().................print the current screen to printer
  112. q_cancel()...........cancel all files currently in the queue
  113. q_f_cancel()................cancel a file in the print queue
  114. q_file().............get current file being printed in queue
  115. q_hold()...............................pause queued printing
  116. q_restart()..........................restart queued printing
  117. q_status()......................check print queue for errors
  118. q_submit().................submit a file for queued printing
  119.  
  120.  
  121. 35 - SCREEN:
  122.  
  123. abox()...........................display BOX with attributes
  124. aprint()......................print a string with attributes
  125. areplicate()...........replicate a character with attributes
  126. ascroll()...........scroll portion of screen with attributes
  127. clock()...........display a ticking clock anywhere on screen
  128. cls()......................................fast clear screen
  129. csr_bot()...............get/set the cursors bottom scan line
  130. csr_off()....................................turn cursor off
  131. csr_on()......................................turn cursor on
  132. csr_put()................move the DOS cursor to location X,Y
  133. csr_set()............set bottom and top scan lines of cursor
  134. csr_top()..................get/set the cursors top scan line
  135. frame_scrn()........................frame a screen in memory
  136. get_attr()..............get attribute from screen at pos X,Y
  137. get_mode()............................get current video mode
  138. get_page()............................get current video page
  139. info_scrn()..........get information about a screen variable
  140. init_scrn()............initialize a virtual screen in memory
  141. iscga()...........................see if video card is a CGA
  142. isega().............................return .T. if ega in use
  143. ismono()..................see if video adapter is monochrome
  144. isvga().................return .T. if video adapter is a vga
  145. max_col()...............get screen's rightmost column number
  146. max_row()....................get screen's highest row number
  147. puts_scrn()..................print string to screen variable
  148. rest_scrn().................restore the screen from a memvar
  149. save_scrn().......................save portion of the screen
  150. scr_read()....................read characters off the screen
  151. set_attr()..................set screen attributes at pos X,Y
  152. set_mode()............................set current video mode
  153. set_page()............................set current video page
  154. title_scrn().................put a title on a virtual screen
  155. vid_type()..............return video card type as an integer
  156. vreplicate()........replicate char vertically with attribute
  157. un_clock()...........................uninstall ticking clock
  158.  
  159. 16 - KEYBOARD:
  160.  
  161. kbd_alt()................................Alt key depressed ?
  162. kbd_capl()............................Caps Lock toggled on ?
  163. kbd_ctrl()..............................Ctrl key depressed ?
  164. kbd_extend().......see if bios supports an extended keyboard
  165. kbd_ins().....................................insert key on?
  166. kbd_lshift().....................Left Shift key depressed  ?
  167. kbd_numl().............................Num Lock toggled on ?
  168. kbd_rshift().....................Right Shift key depressed ?
  169. kbd_scroll()......................scroll lock key depressed?
  170. kbd_shift()............................Shift key depressed ?
  171. kbd_stat()..............................current shift status
  172. key_stat()..............display status of NUM,CAP,and INSERT
  173. isinsert().................check if insert mode is on or off
  174. set_insoff()............................set insert state off
  175. set_inson()..............................set insert state on
  176. un_key()......................uninstall keyboard status line
  177.  
  178. 47 - FILE:
  179.  
  180. f_bof().....................................is file at BOF()
  181. f_bot().................position file pointer at end of file
  182. f_changed()............see if file changed since last backup
  183. f_close().......................................close a file
  184. f_copy()................copy from one file handle to another
  185. f_copy_f()................copy from one file name to another
  186. f_count()...........count number of files matching file spec
  187. f_create().............create a file with optional attribute
  188. f_createf().......create a file, will not erase if it exists
  189. f_dupe().............................duplicate a file handle
  190. f_eof().....................................is file at EOF()
  191. f_erase().........................................erase file
  192. f_error().......................get file function error code
  193. f_first()...........................find first matching file
  194. f_getdate().........................read a file's date stamp
  195. f_gettime().........................read a file's time stamp
  196. f_hide()................change a file's attributes to hidden
  197. f_len()..............get file length of an already open file
  198. f_next().............................find next matching file
  199. f_open().....................open a file for reading/writing
  200. f_prot()..................change file attribute to read only
  201. f_read()........................read in a string from a file
  202. f_readb().........................read in a byte from a file
  203. f_readln()...............................read line from file
  204. f_rename().......................................rename file
  205. f_rep().......................replicate characters to a file
  206. f_seek()...........position file pointer to specified offset
  207. f_setdate().......................change a file's date stamp
  208. f_settime().......................change a file's time stamp
  209. f_tell()...........................get file pointer position
  210. f_top()...........position file pointer at beginning of file
  211. f_unhide().....................unhide a file that was hidden
  212. f_unprot()...............unprotect a file that was protected
  213. f_update()...................update a file's directory entry
  214. f_write()...........................write a string to a file
  215. f_writeb()................................write byte to file
  216. f_writeln()..................write string to file with CR/LF
  217. file_size()........................get a files size in bytes
  218. get_fattr()..................get a file's current attributes
  219. handles()....................get number of file handles left
  220. isferror()............check if a file function error occured
  221. isfile()...........................does specified file exist
  222. ishandle()......................see if a handle is available
  223. max_handle().........total handles available to this process
  224. next_hand().................get next available handle number
  225. set_fattr()..............................set file attributes
  226. set_handle().......increase number of file handles up to 255
  227.  
  228.  
  229. 8 - ERROR HANDLING:
  230.  
  231. clr_error().......................clear Clipper's error flag
  232. clr_ferror()..............clear the file function error flag
  233. get_error()...........get most recent operating system error
  234. in_int24()..........install critical error interrupt handler
  235. int24_num()...................get last critical error number
  236. iserror().............has an operating system error occurred
  237. isint24()............check if interrupt handler is installed
  238. un_int24()..............uninstall the critical error handler
  239.  
  240.  
  241. 38 - ENVIRONMENT:
  242.  
  243. alternate()................character status of set alternate
  244. background().......get current SET COLOR TO background color
  245. bell()..........................character status of set bell
  246. confirm()....................character status of set confirm
  247. console()....................character status of set console
  248. decimals()............return current set decimals to setting
  249. default().................get current SET DEFAULT TO setting
  250. deleted()....................character status of set deleted
  251. delimiters()......................current delimiters setting
  252. delims()..................character status of set delimiters
  253. escape()......................character status of set escape
  254. exact()........................character status of set exact
  255. exclusive()................character status of set exclusive
  256. fix()..........................character status of set fixed
  257. fkey().................get string assigned to a function key
  258. foreground().......get current SET COLOR TO foreground color
  259. get_color()............current SET COLOR TO value as integer
  260. intense()..................character status of set intensity
  261. isalternat().................logical status of set alternate
  262. isbell()..........................logical status of set bell
  263. isconfirm()....................logical status of set confirm
  264. isconsole()....................logical status of set console
  265. isdeleted()....................logical status of set deleted
  266. isdelims()..................logical status of set delimiters
  267. isescape()......................logical status of set escape
  268. isexact()........................logical status of set exact
  269. isexclusiv().................logical status of set exclusive
  270. isfix()..........................logical status of set fixed
  271. isintense()..................logical status of set intensity
  272. isprinton()......................logical status of set print
  273. isscore()...................logical status of set scoreboard
  274. isunique()......................logical status of set unique
  275. margin()................return current set margin to setting
  276. path().......................get current SET PATH TO setting
  277. printon()......................character status of set print
  278. score()...................character status of set scoreboard
  279. set_color().............................set foreground color
  280. unique()......................character status of set unique
  281.  
  282.  
  283. 8 - COMM PORT:
  284.  
  285. com_in()................input a character from a serial port
  286. com_init()............................initialize serial port
  287. com_out().....................send a string to a serial port
  288. com_reset()............reset the com ports after a com_set()
  289. com_set()..............set com port to another physical port
  290. com_stat().......................get serial port status word
  291. com_swap()............................swap COM ports 1 and 2
  292. iscom().......................check for COM port's existence
  293.  
  294.  
  295. 7 - MEMORY:
  296.  
  297. allocate()................allocate memory outside of Clipper
  298. deallocate().....deallocate memory allocated with allocate()
  299. dos_mem().................get amount of DOS memory installed
  300. exp_mem()............get amount of expanded memory installed
  301. ext_mem()............get amount of extended memory installed
  302. fre().............................amount of available memory
  303. isems().....................see if expanded memory installed
  304.  
  305.  
  306. 24 - SYSTEM:
  307.  
  308. computer().............................name of computer type
  309. crash()....................................hang the computer
  310. dos_ver()................get operating system version number
  311. get_args()........................get command line arguments
  312. gete()..............................get environment variable
  313. inp()......................................input from a port
  314. ismath()......................is math coprocessor installed?
  315. isverify()....................check if DOS verify flag is on
  316. last_drive()..........get char. of lastdrive = in config.sys
  317. math_chip()......what kind of math coprocessor is installed?
  318. num_args()..................number of command line arguments
  319. outp()...............................output a byte to a port
  320. peek()....................read a byte from a memory location
  321. poke()...................store a byte into a memory location
  322. processor()............................get type of processor
  323. set_time()..................set the computer's internal time
  324. set_date()..................set the computer's internal date
  325. save_timer()........................save the timer interrupt
  326. rest_timer().....................restore the timer interrupt
  327. rom_date()......................get computer's rom bios date
  328. sound()...............produce a tone on the computer speaker
  329. terminate().............quit program with an errorlevel code
  330. timeh()............get time string in hundredths of a second
  331. verify()..........................set DOS verify flag on/off
  332.  
  333.  
  334. 11 - LOGICAL:
  335.  
  336. ltob().................convert logical var to "1"-"0" string
  337. ltoc().............convert logical var to ".T."-".F." string
  338. ltod().............convert logical var to "Up"-"Down" string
  339. ltof()..............convert logical var to "On"-"Off" string
  340. ltol()..........convert logical var to "Right"-"Left" string
  341. lton().................convert a logical to a numeric 1 or 0
  342. ltos()................convert a logical variable to a string
  343. ltow()..........convert logical var to "True"-"False" string
  344. ltoy()..............convert logical var to "Yes"-"No" string
  345. ntol()............................convert numeric to logical
  346. stol().........................convert a string to a logical
  347.  
  348.  
  349. 6 - BIT FIDDLING:
  350.  
  351. and().............................bitwise and of two numbers
  352. not()...............................bitwise not of a numbers
  353. or()...............................bitwise or of two numbers
  354. shl()..............logically shift a number left by <n> bits
  355. shr().............logically shift a number right by <n> bist
  356. xor()....................bitwise exclusive or of two numbers
  357.  
  358. 5 - BINARY:
  359.  
  360. bin2num()....................convert binary string to number
  361. byte2bin().....................convert byte to binary string
  362. dec2hex()......................convert decimal number to hex
  363. hex2dec()......................convert hex string to integer
  364. num2bin()....................convert number to binary string
  365.  
  366.  
  367. 19 - INTERRUPT:
  368.  
  369. interrupt()...................execute DOS or BIOS interrupts
  370. off()..................get offset address of memory variable
  371. reg_ax()....load/get register value for a DOS/BIOS interrupt
  372. reg_bx()....load/get register value for a DOS/BIOS interrupt
  373. reg_cx()....load/get register value for a DOS/BIOS interrupt
  374. reg_dx()....load/get register value for a DOS/BIOS interrupt
  375. reg_ah()....load/get register value for a DOS/BIOS interrupt
  376. reg_bh()....load/get register value for a DOS/BIOS interrupt
  377. reg_ch()....load/get register value for a DOS/BIOS interrupt
  378. reg_dh()....load/get register value for a DOS/BIOS interrupt
  379. reg_di()....load/get register value for a DOS/BIOS interrupt
  380. reg_si()....load/get register value for a DOS/BIOS interrupt
  381. reg_es()....load/get register value for a DOS/BIOS interrupt
  382. reg_ds()....load/get register value for a DOS/BIOS interrupt
  383. reg_cf()....check status of carry flag after a DOS interrupt
  384. reg_flags().........check status of flags after an interrupt
  385. set_seg().........get the segment/offset address of a string
  386. seg().................get segment address of memory variable
  387. string().....................get string at specified address
  388.  
  389.  
  390.                             ** END **
  391.