Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
El objeto ya existe!!!
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
El objeto ya existe!!!
Miscellaneous
Thread ID:
00672997
Message ID:
00672997
Views:
69
Hola a todos...

Tengo una pequeña clase que lo que me hace es agregarme
un objeto label(con efecto de sombra) en la pantalla
principal de VFP...

y quiero llamar dicho programita en repetidas ocaciones
pero luego a la segunda ves de ejecutarlo me dice :

"Ya existe un objeto miembro con este nombre"

esto haciendo referencia al siguiente codigo:
_screen.AddObject('lblAreaShadow','LABEL')
_screen.AddObject('lblArea','LABEL')


Todo el codigo lo e puesto aqui:

cArea = 'MiAreademiCompañia'
nFontSize = 25
nPosTop = 200
nPosLeft = 125
_screen.AddObject('lblAreaShadow','LABEL')
_screen.AddObject('lblArea','LABEL')
with _screen.lblAreaShadow
.Visible = .T.
.Top = (nPostop)
.Left = (nPosLeft)
.caption = (cArea)
.fontsize = (nFontSize)
.autosize = .t.
.forecolor = 12632256
.backstyle = 0
endwith
with _screen.lblArea
.Visible = .T.
.Top = (nPostop)+6
.Left = (nPosLeft)+3
.caption = (cArea)
.fontsize = (nFontSize)
.autosize = .t.
.backstyle = 0
endwith
return

como puedo "liberar" esta definicion cada
ves que deseo usarlo sin emplear "CLEAR ALL"

gRACIAS!!!!!!
William Chavez
Next
Reply
Map
View

Click here to load this message in the networking platform