User (Legacy) Posted November 14, 2003 Report Share Posted November 14, 2003 Hi all, I was just wondering if it would be possible to get the formatted string representation of a date or number back from chartfx with out having to show a graph using the COM implementation of ChartFX. I am trying to make a control to use in conjunction with chartfx that will allow our end users to specify their own format masks ( they won't be using chartfx's control to do this ). I was hoping that they could type in a mask and then pass this mask to chartfx and a date or number and have the formatted string made using this mask returned to me so that I can the send it back to the end user, so that they can see the results of their input immediately. Thank you for your time. -Mac Link to comment Share on other sites More sharing options...
Software FX Posted November 17, 2003 Report Share Posted November 17, 2003 Sorry we don't have such a function. However, you can use the Windows API's "GetDateFormat" for this purpose. If you are suing VB, you can use the "Format" function. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 17, 2003 Author Report Share Posted November 17, 2003 Where do you get the parameters that can be used to specify a format mask? Is this from windows, or is it of your own design? Also how does ChartFx output the formatted values for x and y axes( is this also windows api? ) Thank you -Mac "SoftwareFX Support" <support@softwarefx.com> wrote in message news:czyFraRrDHA.1560@WEBSERVER1... > Sorry we don't have such a function. However, you can use the Windows API's > "GetDateFormat" for this purpose. If you are suing VB, you can use the > "Format" function. > > -- > FP > Software FX, Inc. > > Region Capture.bmp Link to comment Share on other sites More sharing options...
Software FX Posted November 17, 2003 Report Share Posted November 17, 2003 Chart FX uses the Widows API to perform the Date Formatting for the axis labels. If you look at the documentation for GetDateFormat, you will see that you can pass either a string containing the date format (e.g. dd/mm/yyyy) or NULL to use the default Date Format in your system. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 17, 2003 Author Report Share Posted November 17, 2003 and numeric formatting as well I would presume? "SoftwareFX Support" <support@softwarefx.com> wrote in message news:jfK7MsUrDHA.1900@WEBSERVER1... > Chart FX uses the Widows API to perform the Date Formatting for the axis > labels. > > If you look at the documentation for GetDateFormat, you will see that you > can pass either a string containing the date format (e.g. dd/mm/yyyy) or > NULL to use the default Date Format in your system. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted November 18, 2003 Report Share Posted November 18, 2003 The GetNumberFormat Windows API call will help you format numbers but it uses a structure as opposed to a string representation to specify the formatting options. -- Regards, JC Software FX Support "Mac Dyer" <mac@simx.com> wrote in message news:VamMfSVrDHA.1900@WEBSERVER1... > and numeric formatting as well I would presume? > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:jfK7MsUrDHA.1900@WEBSERVER1... > > Chart FX uses the Widows API to perform the Date Formatting for the axis > > labels. > > > > If you look at the documentation for GetDateFormat, you will see that you > > can pass either a string containing the date format (e.g. dd/mm/yyyy) or > > NULL to use the default Date Format in your system. > > > > -- > > FP > > Software FX, Inc. > > > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.