Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default command button
Message
From
07/01/2000 15:34:54
 
 
To
07/01/2000 11:53:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00314543
Message ID:
00314706
Views:
21
>Hi Jerry,
>
>>Should that happen? I would like nothing to happen when Enter is pressed on page1. I would think that pressing Enter would only call page2 command button when I am on page2.
>
>In the click event of the Default button try:
>
>
if this.parent.parent.activepage = 2 &&We're on Page2
>     &&Do normal sutff
>endif
>Thisform.refresh()
Better, change the .Default property of the button as appropriate - set it true in the page's Activate event, and .f. in the page's Deactivate event. this would allow each page to have its own .Default action
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform