Article ID: 163037
Article Last Modified on 10/16/2002
162253 PRB: Form Builder Form Causes Illegal Operation
********************************************************
*- LabelTest.prg
*- A program to demonstrate the effect of combining the
*- Autosize and WordWrap properties on a label.
********************************************************
PUBLIC x
x=CREATEOBJECT("Form")
x.AddObject("mylabel","test")
x.Visible=.t.
DEFINE CLASS test AS label
AutoSize = .T.
WordWrap = .T.
PROCEDURE Init
LOCAL lcTest,lcname
lcname=THIS.NAME+"A" && Get a unique name
THIS.PARENT.ADDOBJECT(lcname,'label')
lcTest=lcname
WITH THIS.PARENT.&lcTest
.AUTOSIZE=THIS.AUTOSIZE
.WORDWRAP=THIS.WORDWRAP && Comment this line for success.
.VISIBLE=.T.
ENDWITH
ENDPROC
ENDDEFINE
Additional query words: kbvfp600fix
Keywords: kbbug kbfix kbprogramming KB163037