Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with ActivateCell in 6.0
Message
From
13/11/2000 06:07:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/11/2000 15:14:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00440809
Message ID:
00440919
Views:
11
>I'm having difficulty getting the activatecell() to position on the correct row/col of a grid. The help facility does not offer much on this topic.
>
>For example, thisform.grid.activatecell(RECNO(),5) does not reposition to col#5 unless RECNO() is within the number of rows in the grid (16).
>
>There is no index active on the table.
>
>Any help is appreciated
>
>-Dana Daugherty

Dana,
ActivateCell row,col refers to row,col positions in visible part. ie: if the leftmost column is actual 3rd field and visible records are 23,24,25 then activatecell(1,1) activates rec 23, 3rd field. IOW row,col are relativerow and col. Go recno you want, refresh and setfocus to columns(5) (Columns might be rearranged so better use name). This is easier then getting the record in visible part and calculating position for activatecell.
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