Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Focus --- NOT WORKING!
Message
From
07/05/1998 14:35:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/05/1998 14:20:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00097716
Message ID:
00097798
Views:
26
>The NODEFAULT seems to work. Except for now the other page ADD NEW doesn't work. That was where my original SETFOCUS problem was.
>
>ADDNEW METHOD
>
>THISFORM.AddSetFocus = .T.
>THISFORM.adding = .T.
>THISFORM.PageFrame1.Page1.SETFOCUS()
>
>
>PAGE1.SETFOCUS METHOD
>
>IF THISFORM.AddSetFocus
> THISFORM.AddSetFocus = .F.
> THISFORM.PageFrame1.Page1.txtVendor.SETFOCUS()
>ENDIF
>
>
>This worked for the other page, but the Page1 it did not. Adding the NODEFAULT after the txtVendor.SETFOCUS() works when you are on page1, but not the original page. When you are at the original page and press the ADD NEW button, the WHEN Method for TxtVendor (on the other page) fires endlessly. (It is just a Wait Window to tell me the When is firing) I have to Ctrl-Alt-Delete.
>
>Any suggestions?
Tim,
This is a when returning .f. on pageframe.pages(1).anyfield ? If so it's a bug don't try to fix via nodefault. Try to move when code to somewhere else (ie: gotfocus).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform