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
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
ADD OBJECT image1 AS image WITH ;
Height = 169, ;
Left = 48, ;
Top = 24, ;
Width = 253, ;
Name = "Image1"
ADD OBJECT command1 AS commandbutton WITH ;
Top = 204, ;
Left = 132, ;
Height = 27, ;
Width = 84, ;
Caption = "Show picture", ;
Name = "Command1"
PROCEDURE Load
LOCAL origPic
origPic = GETPICT()
CREATE CURSOR mypictures (pic m)
GO bottom
APPEND BLANK
APPEND MEMO pic from (origPic)
ENDPROC
PROCEDURE command1.Click
LOCAL tmpPath
tmpPath = SYS(2023)
lcFile = tmpPath+'\'+SYS(3)+'.jpg'
SELECT mypictures
LOCATE
STRTOFILE(mypictures.pic,lcFile)
IF FILE(lcFile)
thisform.image1.Picture = lcfile
ENDIF
ENDPROC
ENDDEFINE
well i was affraid it would come to that