Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COLUMNS(I) in Form Init
Message
From
29/11/2002 18:20:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00727831
Message ID:
00728271
Views:
21
>Armin,
>
>I still get the same error. Thanks anyway.
>I am using VFP6 if it makes any difference.

>>>THIS.PageFrame1.Page1.Grid1.COLUMNS(I).CONTROLSOURCE = RIGHT(CSstring, 25)

What is CSstring? Is it a global variable, or a field from the table the grid is sitting on? What is the content of this field/variable? If RIGHT(CSstring, 25) evaluates to a string, that string will have to contain an expression which would be able to stand as a controlsource.

I mean, it is possible that you're getting a wrong error here, simply because the expression doesn't evaluate to a proper controlsource string.

Again, as others have said, check your spelling. The (I) may mean different things, depending on the value of the variable i at the time this code runs, and if i is greater than the number of columns you have, that may well be the reason you're getting the message.

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