Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

Updated Wiki: Thor Super Browse

$
0
0

Page under construction...

Left pane

This side shows a grid with all the fields, by default they are in alpabethical order. The order can be changed by clicking one of the headers.
In the left column there are checkboxes to select which fields to "process". Above the grid there are buttons to select all or none of the fields, and a button to reverse the selection.
Below the grid you have two buttons:
  • Save Selection:
    This button will save the current selection, so that the next time you open the same table, the same fields are selected.
  • Show Schema:
    This button will open a detailed description about the table in your browser.

Picker page:

This page is a SQL and Browse syntax builder

Option group to select the main type:

Only fieldsCreates a list of the selected fields
Select ...Creates a SQL Select statement
Update ...Creates a SQL Update statement
Insert ...Creates a SQL Insert statement
Create ...Create a SQL Create statement
BrowseCreate a Browse command

Option group to select SQL type:

VFPCreates VFP SQL syntax
SQLExecCreates MsSQL syntax

Checkbox for NVL():

Add NVL()Adds NVL() syntax where appropriate

Option group to select Cast type:

NoAdds no Cast()
VFPAdds VFP type Cast()
ANSICreates ANSI type Cast()

Other options and conrols:

Textbox FromShows the current table name
Checkbox Add FromAdds From to the Select statement
Checkbox Close afterwardsCloses the table when SuperBrowse exits
Textbox As:Fill in the wanted Source table As string
Button ='TableName'Fills in the current table name in the As textbox
Button RemoveBlanks the As field
Textbox Into TableFill in the name of the target table/cursor
Option 1. TableTarget is a table
Option 2. CursorTarget is a read only cursor
Option 3. Cursor read/WriteTarget is a read/write cursor

Grid page:

This page is an advanced grid

Main grid:

Click the headers to select/unselect fields.
Double-click any record to open it for editing in a separate window (only applicable when the checkbox Read-Only is unchecked).

Search controls:

Textbox Search ValuesEnter what you want to search for
Option ExpressionSearches for the expression you type in. Here are some samples
Option ValueEnter what you want to search for

Searching in the table

The search options are best described by some samples:

Option = ExpressionName='Jim' or name = 'Tore'Self explanatory
Option = ExpressionObsoleteFinds every record where logical field Obsolete is .T.
Option = ExpressionInlist(custno,10,20,30)Self explanatory
Option = Expression'nit'$countryFinds every record where 'nit' is inside the field Country
Option = ValueusaFinds every record where the word 'usa' is inside any of the selected fields
Option = Valuesamsung 5110Finds every record where the words 'samsung' and '5110' are inside any of the selected fields
Option = Valuejim nelson kongFinds every record where the words 'jim' and 'nelson' and 'kong' are inside any of the selected fields
Option = Expression*jim nelson kongSame as above, the asterisk (*) forces a Value type searchany of the selected fields
Option = Value=price>100Find all records with price > 100, the equal sign (=) forces an Expression type searchany of the selected fields

Easy access to the right search type

  • Begin the search text with an equal sign (=) to force an Expression type search
  • Likewise, an asterisk (*) to force a Value type search

For Value search, the following rules apply:

  • Each word are separated, and every word must exist in the record
  • Only selected fields are searched
  • All searches are case insensitive
  • Memo fields are also searched
  • Numeric values are searched for inside both character and numeric fields

Other controls on this page:

Listbox SortTo select the current sort order
Button |<Go to previous record
Button |>Go to next record
Button +Add a new record
Button EditEdit the current record on a separate form
Checkbox Read-OnlySelf explanatory
Checkbox Hide unselected fieldsMakes the grid only show selected fields
Button Modify StructureGives you the possibility to modify the structure. If the table is opened shared, you are asked whether you want to reopen it exclusive or not.

Index page

Lists all active index tags, and shows the syntax to recreate the index file. Can be copied to the clipboard by marking the text with the mouse and press Ctrl-C.

Settings page

This page should be self explanatory.
Tip: The ForeColor and BackColor is a good tool to find the RGB values for a color. Select any color, press OK and you will see the value.
NB! It's usually best to use ForeColor, since the default is Black.

Keyboard shortcuts while the left grid is active:

Common:

EscapeClose the form
EnterClose the form
SpacebarToggle Select Field
APress button Select all
BCopy the current SQL statement to the clipboard
GActivate page Grid
HToggle checkbox Hide unselected Fields (Grid page)
KActivate page Picker
OCopy the current SQL statement to the clipboard
RPress button Reverse all
SToggle Select Field
UPress button Unselect all

When Picker page is visible, these keys also are activated:

:Set focus to the textbox Into Cursor
CSelect option SQL Create...
DSet focus to the textbox Into Local Alias
ESelect option SQL Select...
FToggle checkbox Add From
ISelect option SQL Insert...
LToggle checkbox Add NVL()
MClick button Remove
NSelect option ANSI Cast
PSelect option SQL Update...
TSelect option No Cast
VSelect option VFP Cast
WSelect option Browse
XSets Local Alias to current alias
YSelect option Only fields
1Select option Into Table
2Select option Into Cursor

Keyboard shortcuts while the main (right) grid is active:

NB! These shortcuts are only active in Read-Only mode!

EnterSelect left grid
FSet focus to the Searc Values textbox
KSelect left grid

Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>