ActiveReports 7 Now Available! (click for details)

support.dcube.vfp

Started by webadmin@datadynamics.com at 10-24-2002 12:00 AM. Topic has 1 replies.

Print Search
Sort Posts:    
   10-24-2002, 12:00 AM
webadmin@datadynamics.com is not online. Last active: 12/13/2005 3:53:57 AM webadmin@datadynamics.com

Not Ranked
Joined on 12-12-2005
Posts 0
Using dCube.ColHeading(lnis, lni)
Originally Posted By: Farouk Yew Abdullah<tfyew@pc.jaring.my>

Hi all,



Can anyone spot what is wrong on "WAIT WINDOW [laLabels Type: ] +
TYPE("laLabels[liPoints]")" ?

I expected a string but it is of object type. I want to get the label of the
column.



STORE 0 TO liPoints

IF Thisform.Pgf1.Page1.dCube1.SelStartCol <= ;

Thisform.Pgf1.Page1.dCube1.SelEndCol

lnis = Thisform.Pgf1.Page1.dCube1.SelStartCol

lnie = Thisform.Pgf1.Page1.dCube1.SelEndCol

ELSE

lnis = Thisform.Pgf1.Page1.dCube1.SelEndCol

lnie = Thisform.Pgf1.Page1.dCube1.SelStartCol

ENDIF

DO WHILE lnis <= lnie

liPoints = liPoints + 1

DIME laLabels[liPoints]

FOR lni = 1 TO Thisform.Pgf1.Page1.dCube1.ColDepth(lnis)

laLabels[liPoints] = Thisform.Pgf1.Page1.dCube1.ColHeading(lnis, lni)

WAIT WINDOW [laLabels Type: ] + TYPE("laLabels[liPoints]")

NEXT

lnis = Thisform.Pgf1.Page1.dCube1.NextCol(lnis)

ENDDO



Regards.




   Report 
   10-24-2002, 12:00 AM
webadmin@datadynamics.com is not online. Last active: 12/13/2005 3:53:57 AM webadmin@datadynamics.com

Not Ranked
Joined on 12-12-2005
Posts 0
Re: Using dCube.ColHeading(lnis, lni)
Originally Posted By: Farouk Yew Abdullah<tfyew@pc.jaring.my>

Never mind. I have found out the ColHeading is an object and u need to
specify a property like Caption to get the title. Funny that the help did
not say this...

Regards.

"Farouk Yew Abdullah" wrote in message
news:JI39$lweCHA.1500@dynaweb.datadynamics.com...
> Hi all,
>
>
>
> Can anyone spot what is wrong on "WAIT WINDOW [laLabels Type: ] +
> TYPE("laLabels[liPoints]")" ?
>
> I expected a string but it is of object type. I want to get the label of
the
> column.
>
>
>
> STORE 0 TO liPoints
>
> IF Thisform.Pgf1.Page1.dCube1.SelStartCol <= ;
>
> Thisform.Pgf1.Page1.dCube1.SelEndCol
>
> lnis = Thisform.Pgf1.Page1.dCube1.SelStartCol
>
> lnie = Thisform.Pgf1.Page1.dCube1.SelEndCol
>
> ELSE
>
> lnis = Thisform.Pgf1.Page1.dCube1.SelEndCol
>
> lnie = Thisform.Pgf1.Page1.dCube1.SelStartCol
>
> ENDIF
>
> DO WHILE lnis <= lnie
>
> liPoints = liPoints + 1
>
> DIME laLabels[liPoints]
>
> FOR lni = 1 TO Thisform.Pgf1.Page1.dCube1.ColDepth(lnis)
>
> laLabels[liPoints] = Thisform.Pgf1.Page1.dCube1.ColHeading(lnis,
lni)
>
> WAIT WINDOW [laLabels Type: ] + TYPE("laLabels[liPoints]")
>
> NEXT
>
> lnis = Thisform.Pgf1.Page1.dCube1.NextCol(lnis)
>
> ENDDO
>
>
>
> Regards.
>
>
>



   Report 
GrapeCity » Forum Archives » support.dcube.v... » Re: Using dCube.ColHeading(lnis, lni)

Privacy Policy | Copyright © 1997-2013 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.