TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: DAVID POWELL
from: ABB NAKLIE
date: 1997-02-01 21:58:00
subject: SetFocus()

 Hi David,
 A solution I got off the internet for that problem of the cursor not going
 to the 1st field after hitting an "Add" button (produced by the wizards,
 or me using Append Blank, or even in any examples from books that I have)
 was to add the following code to an Add button:
 ThisForm.Text1.SetFocus()
 Well, it doesn't work and I'm not surprised because the SetFocus() (don't
 laugh) didn't turn blue when I typed it. Having even searched the CD
 and not found SetFocus(), I don't think this solution applies VFP 5.
 Just out of curiosity, would the above worked VFP 3? What would be
 the VFP equivalent. You know, in the Tasmanian Traders, when you want
 to add something, the cursor _does_ go to the 1st field, but for the
 life of me, I haven't figured out how it does it yet!!!! Other than
 that, the damn thing is great!
 Take Care
 Abb
... I DID read the manual!  That's why I'm confused!!
---
   Blue Wave/DOS v2.30 [NR]  
 - JetMail v1.20 6 - Unregistered QWK Mail Door for Spitfire
--- SFScan v2.00
---------------
* Origin: (1:246/89.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.