Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and columns
Message
De
03/12/2004 10:24:43
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
03/12/2004 07:37:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00966290
Message ID:
00966718
Vues:
10
>On a similar vain, I am working on a gridbuilder (prompted in part by your articels in foxtalk):

Nice to hear that :).

>In the builder I have code in the afterrowcolevent like this
>
>LPARAMETERS nColIndex
>
>this.Parent.txt1.Value=this.Columns[nColIndex].header1.caption
>this.Parent.txt.Value=this.Columns[nColIndex].header1.Alignment
>this.Parent.txt3.Value=this.Columns[nColIndex].header1.Fontsize
>this.Parent.txt4.Value=nColIndex
>
>
>but nColIndex evaluates to .F.
>
>what could bw wrong???

Fox? Never had such a case... but then this is event code, which you may be calling from somewhere without actually passing a parameter. Just add
if pcount()=0
   set step on
endif
after the lParameters statement, and see how did it get called. Maybe something in the framework, or parent classes, or whatever - calls the grid.ARCC code for its own reasons, without passing a parameter. I know I do that at times, and I know it's a bit dirty thing to do.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform