I get a message that says:
Program Error
A member object with this name already exists.
thing.addobject( name , "MYLABEL" )
How do I test the object below to see if it already exists?
***************************************************************************
&& Creates a label object in a given style
****************************************************************
lparameters thing, name, x, y, text, font, size, style, color, tooltiptarext
if type("m.color") = "L"
m.color = rgb(0,0,0)
endif
thing.addobject( name , "MYLABEL" )
WITH thing.&name
.height = 17
.Fontname = m.font
.Fontsize = m.size
.FontItalic = "I" $ m.style
.FontBold = "B" $ m.style
.backcolor = rgb(255,255,255)
.left = m.x
.top = m.y
.caption = m.text
.width = len(m.text) * 11.5
.ForeColor = m.color
.visible = .t.
if type("m.tooltiptext") == "C"
.tooltiptext = m.tooltiptext
endif
ENDWITH
RETURN
Kindest,
Jonathan Morningstar
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----