Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tip o' the day
Message
De
05/08/1999 12:52:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/08/1999 11:21:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00250186
Message ID:
00250253
Vues:
15
>Two tips today:
>
>1. A grid class should have the functionality to reposition the viewable portion of the grid to a better one after an order or filter is set:
>
>
*Grid.Refresh
>local lcSel, lnRecs, lnCurRec
>
>DoDefault()
>
>lcSel=Select()
>select (This.recordsource)
>lnCurRec=recno()
>count to lnRecs
>locate record lnCurRec
>if int(This.height - This.headerheight)/This.rowheight > lnRecs
>	This.DoScroll(2)
>endif
>select (lcSel)
2. Do not spit into the wind.

Code coreccted as :
if int((This.height - This.headerheight)/This.rowheight) > lnRecs
	This.DoScroll(2)
endif
Mike
Ç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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform