Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wondering How to Use Column/Header Objects?
Message
From
23/05/2003 09:31:28
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00791840
Message ID:
00792180
Views:
25
Hi Mark,

You display column.Headerclass.

what I mean is column.header1.class or column.class

Agnes

>I just built this into a test project, compiled to an EXE and ran the EXE under runtime. Works like I would expect it. I placed the following code in the form INIT just to make sure:
>SET SAFETY OFF
>LOCAL lcProps, lnI
>lcProps = []
>FOR lnI = 1 TO THIS._Grid1.ColumnCount
>   TEXT TO lcProps TEXTMERGE ADDITIVE NOSHOW PRETEXT 2
>      Column<<TRANSFORM(lnI)>> Name:   <<THISFORM._Grid1.Columns(lnI).Name>>
>          Header Class   :   <<THISFORM._Grid1.Columns(lnI).HeaderClass>>
>          Header ClassLib   :   <<THISFORM._Grid1.Columns(lnI).HeaderClassLibrary>>
>
>   ENDTEXT
>ENDFOR
>STRTOFILE(lcProps, 'GridProps.txt')
>The info written to the GridProps.txt file was:
>Column1 Name:	Column1
>    Header Class	:	_Header
>    Header ClassLib	:	d:\Apps\uicora\_gridmembers.prg
>Column2 Name:	Column2
>    Header Class	:	_Header
>    Header ClassLib	:	d:\Apps\uicora\_gridmembers.prg
>Column3 Name:	Column3
>    Header Class	:	_Header
>    Header ClassLib	:	d:\Apps\uicora\_gridmembers.prg
>Column4 Name:	Column4
>    Header Class	:	_Header
>    Header ClassLib	:	d:\Apps\uicora\_gridmembers.prg
>Column5 Name:	Column5
>    Header Class	:	_Header
>    Header ClassLib	:	d:\Apps\uicora\_gridmembers.prg
>Column6 Name:	Column6
>    Header Class	:	_Header
>    Header ClassLib	:	d:\Apps\uicora\_gridmembers.prg
>Column7 Name:	Column7
>    Header Class	:	_Header
>    Header ClassLib	:	d:\Apps\uicora\_gridmembers.prg
>
>
>>Hi Mark,
>>there are problems with
>>
>>>	Name = [Column]
>>
>>the first you will see if you check your colums CLASS property - it shows 'Column' instead of '_Column'
>>
>>the second is out of the help file, page Member Class:
>>Caution Do not change the Name property for a member class in a program (.prg) -based class definition at design time. Doing so can result in generating the message, "Class definition name is not found."
>>
>>There seems to be some logic in it - you have no class named 'Column' in your prg.
>>
>>See also thread#786711
>>
>>Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform