Thanks, Razzak!
Very clear and helpful.
Client will be pleased.
Best, Bob S.
At 11:26 AM 9/29/2014, you wrote:
At 01:55 PM 9/29/2014, Robert Simms wrote:
In converting a 5-page DOS form to 9.5, the conversion facility created
a very nice tabbed form with 5 tabs. In DOS, pressing ENTER in the last
field on page 1 would take me to the first field on page 2. Does anyone
know how to duplicate this functionality in RB Win 9.5?
Having the proper Tab Control Component ID along with unique Component ID
for each Tab Page, you could easily accomplish the task of programmatically
switching to appropriate page (PAGEINDEX) and then place the focus on
desired field (SET_FOCUS).
-- Example 01:
-- Switching the Page and Setting Focus on Field (Enhanced Tab Control)
PROPERTY <EnhancedTabControlComponentID> ACTIVEPAGEINDEX '3'
PROPERTY <DBVarControlComponentID> SET_FOCUS 'TRUE'
RETURN
Where:
<EnhancedTabControlComponentID> is the Component ID assigned to
Enhanced Tab Control
ACTIVEPAGEINDEX '3' will switch the focus to 4th (Tab) page of the
Enhanced Tab Control
0 = 1st Page
1 = 2nd Page
2 = 3rd Page
3 = 4th Page
4 = 5th Page and so on ...
<DBVarControlComponentID> is the unique Component ID assigned to
any DB Edit or Variable Edit Control
SET_FOCUS 'TRUE' will set the focus (cursor) to that particular field.
That's all there is to it!
For more details and examples, refer to R:Docs 9.5.
Remember, R:BASE for Windows 9.5 is not your grandfather's oldsmobile.
Very Best R:egards,
Razzak.
www.rbase.com
www.facebook.com/rbase
--
31 years of continuous innovation!
16 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--