Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and columns
Message
From
03/12/2004 10:24:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/12/2004 07:37:05
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966290
Message ID:
00966718
Views:
11
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform