candidus Posted February 15, 2012 Report Share Posted February 15, 2012 I'm currently writing an XML library based on OpenG Data and String functions. I use the functions Format Variant into String and Scan Variant from String to do String<->Variant conversions. It works but I stumbled upon problems that required me to modify these VIs: - Scan Variant from String can change the data type of the original Variant. If I format any integer type the output Variant alway contains an I64, any floating point type becomes an EXT, any complex type becomes a CXT. This was not acceptable for me so I fixed it - Both VIs have problems with locale decimal points if no format string is specified. I added a control Default Floating Point Format to specify a default format string for floating point numbers. StringToVariant.zip I'd like to contribute my modifications, IMHO they could be useful for others, too. Quote Link to comment
Phillip Brooks Posted February 15, 2012 Report Share Posted February 15, 2012 There is an active review of the variant tools in this thread Quote Link to comment
candidus Posted February 19, 2012 Author Report Share Posted February 19, 2012 Thank you, but these VIs aren't part of the Variant package. They are part of the string package and I didn't want to hijack a possibly unrelated thread... But I have to admit, I often look for them in the Variant palette, miss them and then remember the string palette Quote Link to comment
Phillip Brooks Posted February 21, 2012 Report Share Posted February 21, 2012 Both VIs have problems with locale decimal points if no format string is specified. I added a control Default Floating Point Format to specify a default format string for floating point numbers. I don't use either library often, what caught my eye was the locale decimal point part. The addition of a specifier for the separator and the implications are being discussed in the other thread. Quote Link to comment
candidus Posted March 1, 2012 Author Report Share Posted March 1, 2012 Hmm, no discussion... What's wrong? This is the right place to post OpenG suggestions, isn't it? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.