Jump to content
Software FX Community

ChartFx.Stripe is not working properly in VB6


vinothtl

Recommended Posts

Hi,

I am using Chartfx.stripe to stripe the weekends of the month, but it is not working properlly when the months are from mulitple years.

Below is the code which i used to stripe the weekends. 

Chartfx1 .OpenDataEx COD_STRIPES, UBound(dateWeekEnd), 0

  For lngWeekEndCounter = 0 To (UBound(dateWeekEnd) - 1)

  Chartfx1.Stripe(intWeekEndCounter).Axis = AXIS_X

  Chartfx1 .Stripe(intWeekEndCounter).From = dateWeekEnd(lngWeekEndCounter) - 0.5

  Chartfx1.Stripe(intWeekEndCounter).To = dateWeekEnd(lngWeekEndCounter) + 0.5

  ' Set the Stripe Color.

  Chartfx1.Stripe(intWeekEndCounter).Color = RGB(210, 210, 210)

  intWeekEndCounter = intWeekEndCounter + 1

  Next lngWeekEndCounter

  Chartfx1.CloseData COD_STRIPES

  Erase dateWeekEnd()

For example if the months are from 2008 and 2009, it stripes only the weekends in the months of 2008,nothing is happening in the weekends of the months in 2009.

Please help me out from this issue!!

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...