Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ThisForm.text1.value = Left(customer.name,20)
Dodefault()
ThisForm.label1.caption = Left(customer.name,20)
Dodefault()
LOCAL cValue
SELECT myCursor
cValue = SUBSTR(myCursor.name,1,5)
thisform.text1.Value = cValue
PUBLIC oform1
oform1=NEWOBJECT("form1")
oform1.Show
RETURN
DEFINE CLASS form1 AS form
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ADD OBJECT text1 AS textbox WITH ;
Height = 25, ;
Left = 72, ;
Top = 36, ;
Width = 169, ;
Name = "Text1"
ADD OBJECT commandgroup1 AS commandgroup WITH ;
AutoSize = .F., ;
ButtonCount = 2, ;
Value = 1, ;
Height = 37, ;
Left = 60, ;
Top = 144, ;
Width = 144, ;
Name = "Commandgroup1", ;
Command1.AutoSize = .F., ;
Command1.Top = 5, ;
Command1.Left = 5, ;
Command1.Height = 27, ;
Command1.Width = 66, ;
Command1.Caption = "Next", ;
Command1.Name = "Command1", ;
Command2.AutoSize = .F., ;
Command2.Top = 5, ;
Command2.Left = 73, ;
Command2.Height = 27, ;
Command2.Width = 66, ;
Command2.Caption = "Previous", ;
Command2.Name = "Command2"
PROCEDURE chopname
LOCAL cValue
SELECT myCursor
cValue = SUBSTR(myCursor.name,1,5)
thisform.text1.Value = cValue
ENDPROC
PROCEDURE Load
CREATE CURSOR myCursor (Name c(20))
INSERT INTO myCursor (name) VALUES ("Mike Gagnon")
INSERT INTO myCursor (name) VALUES ("John Jones")
INSERT INTO myCursor (name) VALUES ("Frank Girrard")
INSERT INTO myCursor (name) VALUES ("Rick Bean")
GO top
ENDPROC
PROCEDURE Init
thisform.chopname()
ENDPROC
PROCEDURE commandgroup1.Command1.Click
SELECT myCursor
SKIP
thisform.chopname()
ENDPROC
PROCEDURE commandgroup1.Command2.Click
SELECT myCursor
SKIP - 1
thisform.chopname()
ENDPROC
ENDDEFINE