Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Indexing

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a two page(form) program that I created. When I enter information the
first time, all of the tab indexes work fine. When I save the information
I entered and then clear the txt boxes to enter another record the tab index
does not appear where I have it set to appear. I have tried using the setfocus
command but I get a Unknown member error for the field that I am trying to
set the focus on. Please help?????
 
Hi Duenas,

The problem might be you might be refering to a wrong object. When you mention two page, i guess you have a pageframe on a form and textbox in the tabs.

Example, if you have a
PageFrame Name = pfTest
Page1 Name= pgPage1
Page2 Name = pgPage2
Text Name = text1 (currently on pgPage1)

You want to set the focus to text you would do something like

THISFORM.pfTest.pgPage1.Text1.SETFOCUS

Hopes this helps.

Yue Jeen



[sig][/sig]
 
And as a reminder, in the method code editing window you can right-click and choose Objject List to see a list of the form's objects; choosing one enters the reference to it into the code. [sig]<p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top