Imaginecorp
Sun Jan 07 12:47:35 CST 2007
Its pretty simple...
Man-wai-chang; open the form in class browser, also the calling form...Then
cut and paste both to post on this MB...
Rather than this back and forth... 99.999999999 percent of the time the
programmer has done something wrong.
Seems like some kind of an endless refresh...the "m" prefix WILL NOT produce
what you are describing.
Plus as Denis had pointed out , its much simpler to code:
.cmd.enabled = empty(thisform.mode) OR
.cmd.enabled = iif(empty(thisform.mode),.t.,.f.)
Another thing, if not for Microsoft and VFP, you may have been unemployed...
something to think about
--
Mohammed
www.imaginecorp.com/what_we_do.htm
"Man-wai Chang" <toylet.toylet@gmail.com> wrote in message
news:%236iQo4KMHHA.448@TK2MSFTNGP04.phx.gbl...
>
> In a form.method(), I have these:
> local m.xx
> m.xx=empty(thisform.mode)
> with thisform.cnCode
> .cmd.enabled=m.xx
> .txt.enabled=m.xx
> endwith
>
> When the .txt.enabled was set to m.xx, the form entered endless loop. If I
> set .txt.enabled to either .t. or .f. without referencing m.xx, it would
> be ok.
>
> What could cause this problem?
>
>
> --
> iTech Consulting Co., Ltd.
> Specialized in providing ePOS solutions
> Website:
http://www.itech.com.hk (IE only)
> Tel: (852) 2325 3883 Fax: (852)2325 8288