Article View: borland.public.vdbase.forms
Article #26Re: Buggy Editor Contol?
From: Ken Mayer [TeamB]
Date: Wed, 10 Mar 1999 00:00
Date: Wed, 10 Mar 1999 00:00
45 lines
1886 bytes
1886 bytes
Tim_Lee@NoSpamPlease.Bigfoot.com (Tim Harrison) wrote:
>Has anyone else been having problems with the editor control?
>More specifically, it does not seem to honour (yes...UK spelling,
>I'm English!) the "x.rowset.autoedit = false" setting.
Known problem.
The fix is to use the key event and place the following (this is
discussed in CONTROLS.ZIP at my website among all the HOW TO
documents):
function key
/*
This code by Gary White is provided to
get around a problem with rowsets that
have the autoEdit property set to false,
and editors. The editor seems to be immune
to this property once you make a change
in it -- if you then save or abandon, you
can actually edit the contents of the editor
object ...
*/
// this = editor
// dataLink = field
// parent = fieldArray
// parent = rowset
if type( "this.datalink.parent.parent" ) # "U"
r = this.datalink.parent.parent
if r.autoEdit == false and ;
( r.state # 2 and r.state # 3 )
return 0
endif
endif
Ken
---
Ken Mayer [TeamB]
VdBASE7 Tutorial, HOW TOs, and dUFLP library:
http://www.apptools.com/dbase/kenstuff
(which is a mirror of:)
http://www.mindspring.com/~hirschv/dbase/dbase.htm
TeamB: http://www.teamb.com
Technical Details
Message-ID:
<36e5bb7d.3304553@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36e6955e.22937703@forums.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 15bdfb,c51e917312cf643a,start X-Google-Attributes: gid15bdfb,public From: supportInfo@borland.com (Ken Mayer [TeamB]) Subject: Re: Buggy Editor Contol? Date: 1999/03/10 Message-ID: <36e5bb7d.3304553@forums.borland.com> X-Deja-AN: 453193752 References: <36e6955e.22937703@forums.inprise.com> Organization: Golden Stag Productions Reply-To: teamb@opto-pps.com Newsgroups: borland.public.vdbase.forms