FnSnap

From BR Wiki
Jump to navigation Jump to search
Project Leader: George Tisdale.
Language: Business Rules!

You can find the latest copy of fnSnap.dll in fnsnap.zip available at [1]
(Note- filenames on the FTP site are case sensitive, and all of the fnsnap functions are library functions.)

This page is a table of contents. Click on each category hotlink for more complete documentation of each function in the category. In addition, the fnsnap.zip file contains a nicely formatted PDF (fnsnap.pdf) that contains essentially the same information.

As with all library functions, linkage to them must be established via a Library statement.

See also Category:FnSnap

  • File Management
  • FNBLDSORT - build a sort control file and execute the sort
  • FNFIL - create a file number that will increment by 1 each time a batch is created
  • FNFILENAME$*80 - Provide a file name
  • FNFILEOK - Check version number
  • FNFILESIZE - count number of records in a file
  • FNGETFILE$ - Return the name and path of an existing file
  • FNGETFILENAME$*80 - Create a file name from a seed
  • FNINDEX - Build an Index file and check for duplicates
  • FNNEXTFIL$ - returns the file name of the next sequential file in a given location
  • FNPUTFILE$ - Return the name and path of an file to be created, replaced or appended
  • FNSIZE - Set or correct a file size
  • FNUPDATE_VERSION - Change a file version and reconfigure layout
  • Data management
  • FNSEQ - Return the next sequence for a key field
  • FNTYPE - Move the contents of one text file into another open file
  • Form statements
  • FNCFORM$ - Create a Condensed Compiled Form Statement
  • FNCF$ - Process a field specification string for use in FNCFORM$
  • Buttons, messages and dialogs
  • FNBUTTON - Add button on the button bar
  • FNCHECK - in connection with a radio dot or check box returns a 1 if checked
  • FNCHECK$ - places or strips ^ from an element
  • FNCLRBUTTON - removes a button from the button bar
  • FNDIALOG$*40 - Display dialog box and return selected text
  • FNDLG - Display a dialog box from data in a file
  • FNHELP - open a tip box associated with a screen using a text file
  • FNHELPTIP - uses David Blankenship utility to display a help record
  • FNOK - Pop-up "OK" question
  • FNOPTIONS - creates a radio dot selection pop up
  • FNOPTIONS$ - creates a check box selection pop up
  • FNPFKEYLINE - Creates a hot field string of function key options
  • FNPFKEY - Prints a function key message
  • FNRADIOCHK$ - display a radio/checkbox with a set of options
  • FNRADNUM - Return the option selected in a radio dot list
  • FNTIMEOUT - Display timeout message
  • FNWINBUTTONS - print one or more buttons on a screen in a designated window
  • String Manipulation
  • FNDECRYPT$ - Decrypt FNENCRYPT$
  • FNENCRYPT$ - Simple encryption
  • FNFKEY - Converts an FKEY value greater than 1000
  • FNNUM$ - Convert number to string
  • FNPHONE$ - Convert number to (###) ###-####
  • FNPROPER$*60 - Convert to Proper Case
  • Other
  • FNAUTO - 1 if last field exit was automatic
  • FNCLKBUF - Clear keyboard buffer
  • FNERRTRAP - Trapped Error Processing
  • FNINIT - Initialize variables in FNSNAP Library
  • FNPRINTSCREEN - stuff the keyboard to generate a print screen
  • FNZERO - set to number if zero
  • Screen input and display
  • FNWAITWIN - displays a window with a message, optionally with buttons
  • FNWAITBAR - displays a progress bar in a window opened using FNWAITWIN
  • FNWAITMSG - displays a new message in a window opened by FNWAITWIN
  • FNMOD - returns the column number of a cell in a grid
  • FNPARSERES - returns screen resolution and BR window size for a session
  • FNPROGRESS - Progress bar
  • FNSCREEN - 24 x 80 screen display for screen painter
  • FNTEXTBOX - creates a text box with word wrap
  • FNWINSCRN - paints a screen in a window
  • FNWINROWCOL - in GUI mode returns rows and columns of a window
  • FNWINSIZE - in GUI mode creates arrays holding all window sizes
  • List and Grid
  • FNLISTSPEC$*50 - Create a window for a list/grid box
  • Child windows
  • FNWINHEAD - Print the top bar to a window
  • FNWINDEV - Query FNSNAP for last window opened
  • Font Management
  • FNFONT$*30 - Create a PCL font string
  • FNLOADFONT$*50 - Loads a PCL font to printer
  • Reprinting Reports
  • FNCLEANLOG - part of FNREPRINT used to remove out of date reports
  • FNOPEN - create a log file for saved reports
  • FNMENUACCESS - used in connection with FNREPRINT to determine user permission to reprint a report
  • FNPRINT - prints a saved report opened using FNOPEN
  • FNREPRINT - displays a list of available saved reports and prints selected report
  • PCL and NWP formatting
  • Bar Codes and addresses
  • FNPOSTNET - prints a postal bar code from a zip code
  • FNCODE3OF9
  • FNCODEUPC
  • Forms and formatting
  • NWP Printing
  • FNPRINTNWP - positions a string and aligns it right, center or decimal on a specified position
  • RTF Printing
  • FNRTFSTART - opens a source file to produce an RTF file using RTFLIB.dll
  • FNRTFEND - turns a source file built with FNRTFSTART into a finished document
  • FNREFERENCE - Prints a page reference on bottom right corner in PCL
  • FNPRINT_FILE - Prints a text file on Grey bar Paper
  • FNPRINTERS - Creates a printed list of printers and a printers.sys file
  • Date formatting
  • FNCCYYMMDD_TO_DAYS - converts CYMD to DAYS
  • FNDATEFWD
  • FNDATEREV - converts MMDDYY to YYMMDD
  • FNDATE$ - Creates a formatted date from DAYS input
  • FNDAYS_TO_MMDDCCYY - Converts DAYS to MDCY
  • FNDAYS_TO_MMDDYY - Converts DAYS to MMDDYY
  • FNMDY2YMD - converts YYMMDD to MMDDYY with century option
  • FNMMDDCCYY_TO_DAYS - converts MDCY to DAYS
  • FNMMDDYY_TO_DAYS - Converts MDY to DAYS
  • FNTIMMILREG - 12 hour time from 24 hour time
  • FNYMD2MDY - converts MMDDYY to YYMMDD with century option
  • FNYYMMDD_TO_DAYS - convert YMD to DAYS
  • Relative and special dates
  • FNBUSINESSDAY - returns the next business day after or including a specified date
  • FNDAYOFYEAR - ordinal number of days from beginning of calendar year
  • FNNEXTMONTH - similar date in the following month
  • FNPRIOR BUSINESSDAY - returns the first business day prior to a given date including the given date
  • FNWEEKDAY$ - Returns the day of the week
  • FNWEEKOFMONTH - number of time a specified day of week has occur ed in the month specified
  • FNWEEKOFYEAR - number of times a specified day of week has occurred in a year up to a specified date
  • Sorting arrays
  • FNSORTARRAY - sort an array with header and footer
  • FNSRTARY - sort an array with header and footer based on itself
  • FNSRTNARY -Sort a numeric array based on another array
  • Array arithmetic
  • FNCOLSUM - sums the elements of an array for a specified column
  • FNROWSUM - sums the elements of an array for a specified row
  • Searching arrays
  • FNCHRMAT$ - convert a numeric array to character
  • FNLISTSRCH - searches a character array based on a search string
  • FNLISTSRCHN - searches a numeric array based on a search string
  • FNSELECTION - selection process using two arrays
  • FNSRCHCRIT$*50 - search criteria for a list box
  • Other
  • FNDELROW - removes a specified row from an array and redimensions the array
  • FNDELROW$ - removes a specified row from an array and redimensions the array
  • FNADDROW - inserts a cell in the middle of a numeric array at a specified row
  • FNADDROW - inserts a cell in the middle of a character array at a specified row
  • FNPARMAT - split an array into sub-arrays
  • Email
  • FNEMAIL - creates an email file for email monitor
  • FNEMAILFILE - inserts a text file into an email for email monitor
  • Formatting
  • FNLEADZERO$ - obsolete replace with CNVRT$("PIC(###)",x)
  • FNCHECKAMOUNT$ - returns English words for a dollar amount
  • Progress
  • FNPROG - displays a progress bar for a process
  • FNPROGRESS - displays a progress bar for a process
  • Other
  • FNCLKBUF - clears the keyboard buffer of extra key strokes
  • FNCURDRV$ - returns the current drive and directory
  • FNMSEXE$ - return the installed location of a Microsoft compliant program installation
  • FNX$ - returns X if true BLANK if false
  • Window and screen processing
  • FNMGCLR - clears a message form the fnpick message line
  • FNSAVPART - legacy function to save a portion of the screen - obsolete in 4.17
  • FNRELPART - legacy function to clear a portion of the screen obsolete in 4.17
  • FNWIN - legacy function to open a window in numeric order
  • FNCLSWIN - legacy function to close a window opened by FNWIN
  • FNPM - legacy message box on the main window
  • Point and pick
  • FNKEYSEL - direct file look up function requires a fixed position font
  • FNPICK_EX - A point and shoot legacy using a single matrix requires a fixed position font
  • FNPICK - A point and shoot legacy using a single matrix requires a fixed position font
  • FNKEYSEL_EX - a legacy direct file access point and shoot requires a fixed sized font
  • FNPOPUP - legacy code for a pop-up choice box
  • Supporting functions
  • Data transfer between program and library
  • FNWINDEV - returns the number of the currentlyactive FNSNAP window using the old system
  • FNLEADZERO$
  • FNGETK$ - \fs20
  • FNSETALL - set all elements of an array
  • FNSETSEL - set all elements of an array
  • FNPRTPICKBAR - a function to position a colored pick bar in FNPICK
  • FNZLPAD$ - pads a number with zeros and converts to string
  • FNINIT - initializes the variable required by the original FNSNAP functions
  • FNNOKEY - chekc to see if CMDKEY or FKEY were pressed