Incode Systems Home Page Incode Systems, Inc.


Latest released version is:

SQLFind - (C) Copyright 2006, Incode Systems, Inc. All Rights Reserved.

SQLFind performs a database lookup and performs an action using the looked up data. It is designed to be called from other programs, and by default centers itself on the topmost window on the screen. It may be launched from a shortcut and centered on the screen. All the specifications controlling database access and the lookup parameters are contained in a simple text file in the same format as an INI file.

Actions are:

Close This option would be appropriate when the user just wants to view the lookup data on the screen.

Execute Executes a program using data from the lookup as parameters.

Data Writes the data to a tab file.

Clipboard Copies the data to the clipboard.

Below is an example file containing the lookup specs. Like all INI files, lines preceeded with a semicolon (;) are comments.

;Caption=Window Caption


SQL=SELECT LastName,FirstName,EmpNo FROM dbo.Contacts WHERE EmpNo > '' AND LastName >= ? AND FirstName >= ?
;KeyCount is the number of columns used to perform the lookup,
;  this must correspond to the parms (?) in the SQL
;ColCount is the number of columns from the SQL in the grid
;ColHead is comma separated list of column headings for the grid
ColHead="Name, Last",First Name,EmpNo
;ColWidths=50,50,50 (ColWidth is automatically sized for any ColWidth not defined)
;Center=1 (centers SQLFind on the screen, default is center on TopMost window)
;HelpFile=myhelp.htm (may be any file with a registered extension, http: or www.)

;Action section defines what happens when you click the
;OK button (or press Enter)
; (if Action is undefined or invalid, nothing happens)
;  SQLFind closes. This could be used when the user just
;  wants to be able to see what is looked up.
;  program (FileNm) is executed with parameters (Parms),
;  or file is launched with Operation, using ShowCmd (default = ShowNormal)
;  writes selected row in grid to file in FileNm
;  copies selected grid row to the clipboard as tab-delimited text
;Note: FileNm, Operation, Parms, and Path may contain
;  environment variables (example: %PATH%) or references to
;  the column number of the selected row
;  (example: &1; for first column)
;Operation=open (any operation registered for the filetype)
Path=c:\work (defines working directory for launch)
;Close=1 (if Close=0, SQLFind does not close after action)
;Wait=0 (if Wait=1, SQLFind waits for action to complete before continuing)