Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COLUMNS(I) in Form Init
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00727831
Message ID:
00728267
Views:
15
Armin,

I still get the same error. Thanks anyway.
I am using VFP6 if it makes any difference.

>Paul,
>
>>THIS.PageFrame1.Page1.Grid1.COLUMN(I).CONTROLSOURCE = RIGHT(CSstring, 25)
>
>the quotes and the S in columns are missing here ... or are these just typos?
>
>THIS.PageFrame1.Page1.Grid1.COLUMN>S<(I).CONTROLSOURCE = "RIGHT(CSstring, 25)"
>
>Regards,
>Armin
>
>
>
>>I am building a grid with variable number of columns.
>>Need to set the control source for each column when the form starts up.
>>In the form Init I have the following two lines that work:
>>
>>THISFORM.PageFrame1.Page1.Grid1.COLUMNS(I).Header1.CAPTION = PROPER(EmpCaption)
>>
>>THIS.PageFrame1.Page1.Grid1.COLUMN2.CONTROLSOURCE = "RIGHT(ApptC.Emp1, 25)"
>>
>>But this does not:
>>
>>THIS.PageFrame1.Page1.Grid1.COLUMN(I).CONTROLSOURCE = RIGHT(CSstring, 25)
>>
>>I get an error "COLUMNS(I) is not an object"
>>
>>Why does that not work and or how to use COLUMNS(I) to set the control source?
-----------------------------------------------------------------
Paul Lee ........... Abri Technologies ......... http://abri.com/
'Recover' - top rated FoxPro/dBase file repair utility.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform