craigsboyd
IS-IT--Management
According to this...
...the following code should work, but doesn't from where i am sitting...cut and paste the following into prg and run to see what i'm talking about...
PUBLIC oForm
oForm = CREATEOBJECT("ftpopenurl"
oForm.show()
DEFINE CLASS ftpopenurl AS form
DoCreate = .T.
Caption = "FTP INET TEST"
Name = "ftpopenurl"
ADD OBJECT inet1 as Inet WITH ;
Top = 12, ;
Left = 12, ;
Height = 100, ;
Width = 100, ;
Name = "Inet1"
ADD OBJECT edit1 AS editbox WITH ;
Height = 120, ;
Left = 12, ;
Top = 72, ;
Width = 348, ;
Name = "Edit1"
ADD OBJECT command1 AS commandbutton WITH ;
Top = 204, ;
Left = 276, ;
Height = 27, ;
Width = 84, ;
Caption = "Command1", ;
Name = "Command1"
PROCEDURE command1.Click
thisform.Edit1.value = thisform.Inet1.OpenURL("ftp://ftp.microsoft.com/MISC/ReadMe1.txt",0)
thisform.Edit1.refresh()
ENDPROC
ENDDEFINE
Define Class INET As OleControl
OleClass='InetCtls.Inet.1'
Enddefine
Slighthaze = NULL
...the following code should work, but doesn't from where i am sitting...cut and paste the following into prg and run to see what i'm talking about...
PUBLIC oForm
oForm = CREATEOBJECT("ftpopenurl"
oForm.show()
DEFINE CLASS ftpopenurl AS form
DoCreate = .T.
Caption = "FTP INET TEST"
Name = "ftpopenurl"
ADD OBJECT inet1 as Inet WITH ;
Top = 12, ;
Left = 12, ;
Height = 100, ;
Width = 100, ;
Name = "Inet1"
ADD OBJECT edit1 AS editbox WITH ;
Height = 120, ;
Left = 12, ;
Top = 72, ;
Width = 348, ;
Name = "Edit1"
ADD OBJECT command1 AS commandbutton WITH ;
Top = 204, ;
Left = 276, ;
Height = 27, ;
Width = 84, ;
Caption = "Command1", ;
Name = "Command1"
PROCEDURE command1.Click
thisform.Edit1.value = thisform.Inet1.OpenURL("ftp://ftp.microsoft.com/MISC/ReadMe1.txt",0)
thisform.Edit1.refresh()
ENDPROC
ENDDEFINE
Define Class INET As OleControl
OleClass='InetCtls.Inet.1'
Enddefine
Slighthaze = NULL