You're right. The properties and methods only apply to the then "current 
row".  With that in mind, say if you were in the third or fourth field of 
the region and exited the region, the onExit eep would fire setting the 
focus to the first field, then when the newrow is created, you will be in 
the first field of the new row.




----- Original Message ----- 
From: "Dennis McGrath" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, February 06, 2012 2:50 PM
Subject: [RBASE-L] - Re: SET FOCUS


Actually, I think the SKIP TO is the correct code to use.
Think about it, in a scrolling region you have multiple copies of the same 
control.
You can't set focus to all of them at once.

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Dennis 
McGrath
Sent: Monday, February 06, 2012 1:46 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: SET FOCUS

I'll bet if you try the set focus in that eep it will also work.
It's all a matter of what resources are available when, not simple in 
windows sometimes.



Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of J BLAUSTEIN
Sent: Monday, February 06, 2012 1:15 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: SET FOCUS

Thank you - that work exactly how I wanted too - But I think there is a buy 
regarding the set focus property
J
On 2/6/2012 2:01 PM, Dennis McGrath wrote:
The only time the scrolling region entry eep fires is when you first enter 
the scrolling region.
The action you want to capture is at the table level.

I was thinking you really want to use the After Insert Row eep.

That way, when you F8 you will just go to the next row without moving, but 
upon adding a row you will jump to the first field.

It all depends on using the correct eep (or eeps) to achieve your goal.

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]<mailto:[email protected]>
________________________________
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On Behalf Of Dennis 
McGrath
Sent: Monday, February 06, 2012 12:28 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: SET FOCUS

The scrolling region is based on a table.

In the On Row Entry eep of the table:
SKIP TO firstfieldname

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]<mailto:[email protected]>
________________________________
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On Behalf Of J 
BLAUSTEIN
Sent: Monday, February 06, 2012 12:09 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: SET FOCUS

Jan - the form has several fields - I fill in several and then I add a new 
row - I would like the form entry to begin in the first  field
On 2/6/2012 1:04 PM, jan johansen wrote:
Ok. Scrolling region it is. I ran into this a long time ago. When you use a 
dbedit in a scrolling region and move to the next row, you aren't really 
leaving the dbedit. I had to write some code so that if I always entered a 
field from the left. Not sure if that's the issue or not.

-----Original Message-----
From: J BLAUSTEIN <[email protected]><mailto:[email protected]>
To: [email protected]<mailto:[email protected]> (RBASE-L Mailing List)
Date: Mon, 06 Feb 2012 12:42:36 -0500
Subject: [RBASE-L] - Re: SET FOCUS

So this sounds like a scrolling region that you are entering by using the F8 
key. Is that correct? - yes
Add an *on entry to row *eep with that code in it - I have the code in after 
the form start .
Albert
On 06/02/2012 10:10 AM, J BLAUSTEIN wrote:
I am trying to have the form begin at the same point when I add a new row - 
I am using the below code - when I add in the middle of the form - the 
cursor is at the that point in the new row?
PROPERTY 'logdt_item' SET_FOCUS 'TRUE'
thanks
--
J. Blaustein
J Blaustein Associates, Inc.
        12 Herrick Drive
    Lawrence, NY 11559
516-371-3445 FAX 516-345-8009

--
J. Blaustein
J Blaustein Associates, Inc.
        12 Herrick Drive
    Lawrence, NY 11559
516-371-3445 FAX 516-345-8009

--
J. Blaustein
J Blaustein Associates, Inc.
        12 Herrick Drive
    Lawrence, NY 11559
516-371-3445 FAX 516-345-8009


Reply via email to