I have the following form I use to show locations from a database use My problem is that the form 'hangs around' and shows as an outline when I go back for the next person.
How do I kill it please?
Anyone have any ideas how to kill the form completely?
Thanks
Eric
How do I kill it please?
Code:
PARAMETERS line1,line2,line3,line4,line5
lAddr2 = line1
lAddr3 = line2
lState = line3
lPc = line4
lDB = line5
PUBLIC oForm
oForm = CreateObject("mapclass")
oForm.show
DEFINE CLASS mapclass AS form
Height = 573
Width = 741
DoCreate = .T.
Name = "form"
ControlBox = .f.
Caption = "Map form"
*!* label_cmdG006
ADD OBJECT cmdexit AS commandbutton WITH ;
Name = "cmdExit"
ADD OBJECT oweb AS olecontrol WITH ;
Name = "oWeb", ;
OleClass = "Shell.Explorer.2"
ADD OBJECT cmdfind AS commandbutton WITH ;
Name = "cmdFind"
ADD OBJECT label4 AS label WITH ;
Name = "Label4"
PROCEDURE Load
SYS(2333,1)
ENDPROC
PROCEDURE Init
thisform.label4.CAPTION = my lines
ENDPROC
PROCEDURE cmdexit.Click
USE IN SELECT("MyCursor")
CLEAR CLASS mapclass
thisform.Release()
ENDPROC
PROCEDURE cmdfind.Click
PUBLIC lcURL
LOCAL lcStartPostCode
lcURL=""
lcURL = "[URL unfurl="true"]http://www.multimap.com/map/places.cgi?client=public"[/URL]
NB - my locAtion variables here
lcURL = lcURL + mylocationvariables
this.Parent.label4.CAPTION = lcURL
this.Parent.oweb.Navigate(lcURL)
ENDPROC
ENDDEFINE
Anyone have any ideas how to kill the form completely?
Thanks
Eric