Jump to content
Software FX Community

User Defined format of X-axis is not working correctly


User (Legacy)
 Share

Recommended Posts

Hi,

I have the following code :

With cfx.Axis(AXIS_X)

.Format = "Mmm-yyyy"

.Min = dtStart ' dtStart and dtEnd are date variables

.Max = dtEnd

' Increase the step by 120 days

.STEP = 120

End With

According to the Programmers Guide, I should be able to define a

specific format. However, the above code is producing huge numbers

instead of "Jan 2001".

Any suggestions?

Wendy

Link to comment
Share on other sites

I saw an example where the first character of the format string must be a

'x'. Don't know why. Search the group.

GregM

"Wendy Gatanis" <wgatanis@distributive.com> wrote in message

news:3C6D72E7.9070103@distributive.com...

> Hi,

>

> I have the following code :

>

> With cfx.Axis(AXIS_X)

> .Format = "Mmm-yyyy"

>

> .Min = dtStart ' dtStart and dtEnd are date variables

> .Max = dtEnd

> ' Increase the step by 120 days

> .STEP = 120

>

> End With

>

> According to the Programmers Guide, I should be able to define a

> specific format. However, the above code is producing huge numbers

> instead of "Jan 2001".

>

> Any suggestions?

>

> Wendy

>

Link to comment
Share on other sites

I did Mmm so that it displays Jun, Jul, Aug,etc...  It says in the API 

help file, Axis Format defition (Remarks section) that you need to do

"MMM" to get this out put.

Thanks,

Wendy

SoftwareFX Support wrote:

> What is Mmm ?

>

> Do you mean:

>

> Format = "DMM-yyyy"

>

> This format will display:

>

> 05-2002 06-2002 07-2002 ....

>

>

> --

> FP

> Software FX, Inc.

>

>

>

Link to comment
Share on other sites

Thank you Greg,

That worked. When I did .Format = "xMMM-yyyy" I get Jun-1999,

Jul-1999, etc... You might want to know too that the format function is

case sensitive. If I .Format = "xMmm-YYYY" it does not work.

Thanks,

Wendy

Greg McCarty wrote:

> I saw an example where the first character of the format string must be a

> 'x'. Don't know why. Search the group.

>

> GregM

>

> "Wendy Gatanis" <wgatanis@distributive.com> wrote in message

> news:3C6D72E7.9070103@distributive.com...

>

>>Hi,

>>

>>I have the following code :

>>

>>With cfx.Axis(AXIS_X)

>> .Format = "Mmm-yyyy"

>>

>> .Min = dtStart ' dtStart and dtEnd are date variables

>> .Max = dtEnd

>> ' Increase the step by 120 days

>> .STEP = 120

>>

>>End With

>>

>>According to the Programmers Guide, I should be able to define a

>>specific format. However, the above code is producing huge numbers

>>instead of "Jan 2001".

>>

>>Any suggestions?

>>

>>Wendy

>>

>>

>

>

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.

 Share

×
×
  • Create New...