Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide cursor in grids textbox
Message
De
15/08/2001 10:27:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/08/2001 09:25:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00543966
Message ID:
00544074
Vues:
25
IC. W/o a new property current version handles it like this :
   .recordsource = ""
   lnOldColumnCount = .columncount
   .columncount = -1
   .columncount= iif( .lKeepFormat, lnOldColumnCount, fcount(lcAliasName)-3 )
Cetin

>Hello Cetin
>
>didn't function at first
>
>cause in the init of grid was:
>
>with this
> .recordsource = ""
> .columncount = -1
> .columncount=fcount(lcAliasName)-3
> .recordsource = lcAliasName
> for ix=1 to .columncount
> with .columns(ix)
> .controlsource = lcAliasName+"."+field(ix)
>....
>endwith
>
>so i added a property "nrofwantedfields" to gridclass and changed code to:
>with this
> .recordsource = ""
> .columncount = -1
> IF .nrofwantedfields = 0
> .columncount=fcount(lcAliasName)-3
> ELSE
> .columncount= .nrofwantedfields
> ENDIF
> .recordsource = lcAliasName
> for ix=1 to .columncount
> with .columns(ix)
> .controlsource = lcAliasName+"."+field(ix)
>...
>endwith
>
>
>works just fine ..
>
>thx for the help
>
>
>Christian
Ç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