home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 April B
/
Pcwk4b98.iso
/
Borland
/
Dbase50w
/
MUSIC1.PAK
/
SKIP.WFM
< prev
next >
Wrap
Text File
|
1994-08-02
|
4KB
|
148 lines
***************************************************************************
* PROGRAM: Skip.wfm
*
* WRITTEN BY: Borland Samples Group
*
* DATE: 1/94
*
* UPDATED: 7/94
*
* REVISION: $Revision: 1.9 $
*
* VERSION: dBASE FOR WINDOWS 5.0
*
* DESCRIPTION: This form allows skipping records in the current view table.
* It contains a spinbox for that purpose, and 2 buttons that
* will let you submit the form or cancel the skip.
*
* PARAMETERS: None
*
* CALLS: Music.qbe (view of tables, in case none are open)
* Music.cc (for custom pushbuttons)
*
* USAGE: DO Skip.wfm
*
*******************************************************************************
set talk off
set ldcheck off
** END HEADER -- do not remove this line*
* Generated on 06/19/94
*
LOCAL f
f = NEW SKIPFORM()
f.Open()
CLASS SKIPFORM OF FORM
Set Procedure to Music.cc Additive
this.MousePointer = 1
this.ColorNormal = "B/W"
this.Width = 45.05
this.Top = 5.41
this.Text = "Skip Records"
this.Left = 18.87
this.OnSelection = CLASS::ONSELECTION
this.Height = 5.30
this.Minimize = .F.
this.Maximize = .F.
this.OnOpen = CLASS::ONOPEN
this.HelpFile = ""
this.HelpId = ""
DEFINE RECTANGLE BORDER OF THIS;
PROPERTY;
ColorNormal "W/R",;
Width 29.07,;
Top 0.47,;
Text "",;
Left 13.43,;
Height 2.24,;
Border .T.,;
BorderStyle 1
DEFINE EMPHASIZEDTEXT SKIPTEXT OF THIS;
PROPERTY;
FontBold .F.,;
Alignment 5,;
ColorNormal "W+/R",;
Width 7.99,;
Top 1.01,;
Text "Skip",;
Left 14.79,;
Height 1.26,;
Border .F.,;
FontSize 10.00
DEFINE SPINBOX NUMTOSKIP OF THIS;
PROPERTY;
ColorNormal "R/W",;
Width 14.79,;
Top 1.01,;
Left 24.99,;
Value 0,;
Height 1.01,;
Border .T.,;
ColorHighLight "R/W*",;
Rangemin -200.00,;
Function "C",;
Picture "99999999999999",;
Rangemax 200.00
DEFINE IMAGE LOGOIMAGE OF THIS;
PROPERTY;
Width 10.71,;
DataSource "FILENAME SMLMUSIC.BMP",;
Top 0.50,;
Left 1.19,;
Height 4.55
DEFINE OKBUTTON SKIPOKBUTTON OF THIS;
PROPERTY;
Width 14.11,;
Top 3.47,;
Left 13.43,;
Height 1.50
DEFINE CANCELBUTTON SKIPCANCELBUTTON OF THIS;
PROPERTY;
Group .F.,;
Default .T.,;
Width 14.11,;
Top 3.47,;
ID 0,;
Left 28.22,;
Height 1.50
****************************************************************************
PROCEDURE OnOpen
****************************************************************************
if empty(dbf())
set view to music.qbe
endif
form.skipCancelButton.SetFocus()
****************************************************************************
PROCEDURE OnSelection(controlId)
****************************************************************************
if controlId <> 0 && Cancel wasn't selected
do case
case eof()
go bottom
case bof()
go top
otherwise
skip form.numToSkip.value
endcase
endif
form.Close()
ENDCLASS