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

Updated Wiki: Thor Super Browse

$
0
0
SNAGHTML8410e4d

Left Pane

The left pane shows a grid with the data structure of the table. The fields are listed in alphabetical order. The order can be changed by clicking one of the headers.

Click on the fields listed in the grid to mark those you wish to "process".

Below the grid are two buttons:

Save SelectionsSave the current selections so that the next time you open the same table, the same fields are selected.
Show SchemaOpens a detailed description about the table in your browser.

Picker Page

This page is a SQL and Browse syntax builder.

image

Option group to select the type of statement to be created:

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:

NoDoes not add Cast()
VFPAdds VFP type Cast()
ANSICreates ANSI type Cast()

Other options and controls:

“From:” TextboxShows the current table name
“Add From” CheckboxAdds “From” phrase to the Select statement
“Close afterwards” Checkbox Closes the table when SuperBrowse exits
“As:” Textbox Fills in the Table_Alias
“=TableName” ButtonFills in the current table name in the As textbox
“Remove” ButtonBlanks the As field
“Into Table” TextboxFill 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.

Click a column header to select/unselect a field.

Double-click any record to open it for editing in a separate window created by Dynamic Forms. This is not available if “Read-Only” checkbox is checked).


imageThis


Filtering the grid:

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>