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.
PUBLIC oform1
oform1=NEWOBJECT("form1")
oform1.Show
RETURN
DEFINE CLASS form1 AS form
Top = 0
Left = 0
Height = 261
Width = 645
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ADD OBJECT edit1 AS editbox WITH ;
Height = 181, ;
Left = 24, ;
Top = 24, ;
Width = 277, ;
ControlSource = "mycursor.comments", ;
Name = "Edit1"
ADD OBJECT command1 AS commandbutton WITH ;
Top = 216, ;
Left = 12, ;
Height = 25, ;
Width = 85, ;
Caption = "Select all", ;
Name = "Command1"
ADD OBJECT command2 AS commandbutton WITH ;
Top = 216, ;
Left = 108, ;
Height = 27, ;
Width = 84, ;
Caption = "Copy", ;
Name = "Command2"
ADD OBJECT command3 AS commandbutton WITH ;
Top = 216, ;
Left = 204, ;
Height = 27, ;
Width = 84, ;
Caption = "Paste", ;
Name = "Command3"
ADD OBJECT edit2 AS editbox WITH ;
Height = 181, ;
Left = 324, ;
Top = 24, ;
Width = 289, ;
Name = "Edit2"
PROCEDURE Load
CREATE CURSOR myCursor (comments M)
INSERT INTO myCursor (comments) VALUES ("Hello this a comment."+CHR(13)+"You need to select all of this")
GO top
ENDPROC
PROCEDURE command1.Click
thisform.edit1.SetFocus()
KEYBOARD '{CTRL+A}'
ENDPROC
PROCEDURE command2.Click
_ClipText = ThisForm.Edit1.Value
thisform.edit2.SetFocus()
ENDPROC
PROCEDURE command3.Click
KEYBOARD '{CTRL+V}'
ENDPROC
ENDDEFINE