Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How declare GotFocus() in grid
Message
From
14/07/1999 07:27:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/07/1999 06:28:30
Rolandas Jakeliunas
Kaunas University of Technology
Kaunas, Lithuania
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00241177
Message ID:
00241189
Views:
14
>Hi,
>
>I declare grid, for example:
>
>SqlString = [SELECT ... INTO CURSOR cstring'
>&SqlSalyga
>thisform.grid1.RecordSourceType=1
>thisform.grid1.Readonly=.T.
>thisform.grid1.RecordSource = 'cstring'
>thisform.grid1.show
>
>Now I need declare GotFocus() function, for example:
>
>thisform.grid1.column1.text.GotFocus()...
>
>I not use classes.
>I declare GotFucus in grid1 object, but when use code shown above, gotfocus not work.
>
>Realy need help.
First why not :
thisform.grid1.RecordSource = SqlString
Gotfocus() ? Do you mean setfocus() in fact ? What do you want to do ? Call gotfocus code or set focus to thisform.grid1.column1.text ? Note that your code just calls gotfocus code but it is only run and doesn't set focus to thisform.grid1.column1.text.
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
Reply
Map
View

Click here to load this message in the networking platform