Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EnableObjects and SetFocus

0 views
Skip to first unread message

P.G.M. van Mierlo

unread,
Apr 4, 1999, 4:00:00 AM4/4/99
to
Hi,

I'm looking for a procedure called EnabledObject and SetFocus for VDB 7
wich was also available
for VDB 5.5 which I used a lot. I thought it was created by some of the
Team-B members....but
i'm not sure...

This is the code for Vdb5 for EnableObject and SetFocus....so i someone
remembers something, let me know:

Procedure EnableObjects(lEnabled)
*--------------------------------
if form.DataControlsAreEnabled = lEnabled
RETURN
else
form.DataControlsAreEnabled = lEnabled
endif
local oControl
oControl = form.first
do
if oControl.Classname $
"ENTRYFIELD|EDITOR|RADIOBUTTON|SPINBOX|CHECKBOX|BROWS|COMBOBOX|LISTBOX"
oControl.Enabled = lEnabled
endif
oControl = oControl.Before
until oControl.Name ==form.first.name

Procedure FirstFocus
*-------------------
private oControl
oControl = form.first
do
if type("oControl.SetFocus") == "FB" .or.
type("oControl.SetFocus") == "CB" .and. oControl.PageNo = Form.PageNo
oControl.SetFocus()
RETURN
endif
oControl = oControl.Before
until oControl.Name == form.first.name

----------------------------------------
Greetings Peter

Ken Mayer [dBVIPS]

unread,
Apr 4, 1999, 4:00:00 AM4/4/99
to
"P.G.M. van Mierlo" <mier...@wxs.nl> wrote:

>I'm looking for a procedure called EnabledObject and SetFocus for VDB 7
>wich was also available
>for VDB 5.5 which I used a lot. I thought it was created by some of the
>Team-B members....but
>i'm not sure...

SetFocus is a method of controls on a form. EnableObject isn't really
necessary with VdB7, but if you want it, check the dUFLP library at my
website.

Ken
---
Ken Mayer [dBVIPS]

GO HERE! NOW!

news.dbase2000.com

These newsgroups are going away fast!


0 new messages