Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid
Message
De
19/03/2005 16:10:14
 
 
À
19/03/2005 15:15:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Grid
Versions des environnements
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Divers
Thread ID:
00997627
Message ID:
00997633
Vues:
11
hi,
thank you,
this code works under vfp5, but how i can freez 2 columns at the same time via this code
local i
if this.columns(1).ColumnOrder < this.LeftColumn
&& we scroll forward
for i=this.columns(1).ColumnOrder to this.LeftColumn-1
this.columns(1).ColumnOrder = this.columns(1).ColumnOrder + 1
endfor
else
&& we scroll backward
for i=this.LeftColumn+1 to this.columns(1).ColumnOrder
this.columns(1).ColumnOrder = this.columns(1).ColumnOrder - 1
endfor
endif
>Hi
>
>** in vfp8 this is the command in int()
>thisform.Grid1.LockColumns [ = nValue ]
>
>** in vfp 6
>To lock one column in a grid. Put this code into AfterRowColumn and scrolled properties.
>local i
>if this.columns(1).ColumnOrder < this.LeftColumn
> && we scroll forward
> for i=this.columns(1).ColumnOrder to this.LeftColumn-1
> this.columns(1).ColumnOrder = this.columns(1).ColumnOrder + 1
> endfor
>else
> && we scroll backward
> for i=this.LeftColumn+1 to this.columns(1).ColumnOrder
> this.columns(1).ColumnOrder = this.columns(1).ColumnOrder - 1
> endfor
>endif
>
>Shafid
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform