Skip to content

selrec / selectrecord

These two functions are part of the appframework library and are used for record switching. selrec is designed specifically for use with the toolbar and uses the name of the default toolbar tools for identifying the exact operation. selectrecord is a more universal function and requires the specifying of the operation you wish to perform.

selrec(wxtool me,appwindow appw,boolean dodefer)
selectrecord(appwindow appw,string operation,boolean silent,integer error )

selrec

The following are the names selrec expects to receive

Operation

expected name

selectrecord equivalent

Select first record

tSelFirst

selectfirst 

Rewind through database

tSelRwnd

selectrewind 

Select previous record

tSelPrev 

selectprevious 

Reselect current record

tSelCurr 

selectcurrent

Select next record

tSelNext

selectnext

Fast forward through database

tSelFfwd 

selectfastforward

Select last record

tSelLast

selectlast 

Select index value

tSelKey

selectkey

Parameters accepted by selrec

This function should only be used as part of a wxtool onclick event.

selectrecord

This function is much more useful than selrec as it is more versatile and can therefore be called in more places. This function will require the form object to have a table.

Operation

Operation parameter

Select first record

selectfirst

Rewind through database

selectrewind

Select previous record

selectprevious

Reselect current record

selectcurrent

Select next record

selectnext

Fast forward through database

selectfastforward

Select last record

selectlast

Select index value

selectkey

Parameters accepted by selectrecord