<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HELP - NUMERIC STRING ACTING UP! in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/HELP-NUMERIC-STRING-ACTING-UP/m-p/212267#M17122</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi All!&lt;BR /&gt;
I have an issue with a specific text string which I must put&lt;BR /&gt;
under control &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;!&lt;BR /&gt;
In this test case, the GDL object is reading a string directly&lt;BR /&gt;
from a text file.&lt;BR /&gt;
These strings are numeric expressions which have to be&lt;BR /&gt;
printed as plain text, such as (Ex.):&lt;BR /&gt;
&lt;B&gt;"(PI * 121.67^2 * 130.19) / 360" &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
These strings were generated by other GDL objects and written to&lt;BR /&gt;
a .txt file with a list scheme. Upon initial testing, the text variable "math"&lt;BR /&gt;
kept on "switching" to a real variable, which kept giving the result of the&lt;BR /&gt;
equation.&lt;BR /&gt;
My workaround was to "pad" the generated equation so it would start&lt;BR /&gt;
with a letter - thus forcing the variable to set as text (Ex.):&lt;BR /&gt;
&lt;B&gt;"A (PI * 121.67^2 * 130.19) / 360"&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
A STRSUB function is then used to "chop off" the first to characters,&lt;BR /&gt;
("A ") and returning a nice clean text string as intended.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;THIS IS WHERE I NEED HELP:&lt;/B&gt;&lt;BR /&gt;
Using the PRINT command, the pop-up window shows the string&lt;BR /&gt;
as it should be (see attachment), but when I use the TEXT2 command,&lt;BR /&gt;
the string gets all messed up and becomes incoherent (Mathematically, &lt;BR /&gt;
that is...).&lt;BR /&gt;
I couldn't find any clue as to controlling this - ideas?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Gil&lt;/R&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/72256i66E76983BFECFE40/image-size/large?v=v2&amp;amp;px=999" border="0" alt="SPARX2.jpg" title="SPARX2.jpg" /&gt;</description>
    <pubDate>Wed, 24 May 2023 09:51:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-24T09:51:43Z</dc:date>
    <item>
      <title>HELP - NUMERIC STRING ACTING UP!</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HELP-NUMERIC-STRING-ACTING-UP/m-p/212267#M17122</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi All!&lt;BR /&gt;
I have an issue with a specific text string which I must put&lt;BR /&gt;
under control &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/E&gt;!&lt;BR /&gt;
In this test case, the GDL object is reading a string directly&lt;BR /&gt;
from a text file.&lt;BR /&gt;
These strings are numeric expressions which have to be&lt;BR /&gt;
printed as plain text, such as (Ex.):&lt;BR /&gt;
&lt;B&gt;"(PI * 121.67^2 * 130.19) / 360" &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
These strings were generated by other GDL objects and written to&lt;BR /&gt;
a .txt file with a list scheme. Upon initial testing, the text variable "math"&lt;BR /&gt;
kept on "switching" to a real variable, which kept giving the result of the&lt;BR /&gt;
equation.&lt;BR /&gt;
My workaround was to "pad" the generated equation so it would start&lt;BR /&gt;
with a letter - thus forcing the variable to set as text (Ex.):&lt;BR /&gt;
&lt;B&gt;"A (PI * 121.67^2 * 130.19) / 360"&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
A STRSUB function is then used to "chop off" the first to characters,&lt;BR /&gt;
("A ") and returning a nice clean text string as intended.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;THIS IS WHERE I NEED HELP:&lt;/B&gt;&lt;BR /&gt;
Using the PRINT command, the pop-up window shows the string&lt;BR /&gt;
as it should be (see attachment), but when I use the TEXT2 command,&lt;BR /&gt;
the string gets all messed up and becomes incoherent (Mathematically, &lt;BR /&gt;
that is...).&lt;BR /&gt;
I couldn't find any clue as to controlling this - ideas?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Gil&lt;/R&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/72256i66E76983BFECFE40/image-size/large?v=v2&amp;amp;px=999" border="0" alt="SPARX2.jpg" title="SPARX2.jpg" /&gt;</description>
      <pubDate>Wed, 24 May 2023 09:51:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HELP-NUMERIC-STRING-ACTING-UP/m-p/212267#M17122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T09:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: HELP - NUMERIC STRING ACTING UP /// AC Non-Unicode issue</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/HELP-NUMERIC-STRING-ACTING-UP/m-p/212268#M17123</link>
      <description>OK - I Got to the cause of the problem:&lt;BR /&gt;
&lt;BR /&gt;
The text string reversal occurs due to setting the Windows "Advanced"&lt;BR /&gt;
Regional settings Non-Unicode language to a Non-English setup,&lt;BR /&gt;
in my case Hebrew.&lt;BR /&gt;
&lt;BR /&gt;
Although the obvious solution would be to set it back to English,&lt;BR /&gt;
this is useless due to other programs, including financial software,&lt;BR /&gt;
depending upon the settings being set to the local language.&lt;BR /&gt;
&lt;BR /&gt;
Interestingly enough, this presents the example that internally, GDL is full Unicode, as shown in the PRINT command.&lt;BR /&gt;
But once the data is "poured" into AC's general (Non-Unicode) plan&lt;BR /&gt;
environment, via TEXT2, the problem pops up.&lt;BR /&gt;
&lt;BR /&gt;
Notice has been sent to the powers that be.</description>
      <pubDate>Sat, 14 May 2011 14:18:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/HELP-NUMERIC-STRING-ACTING-UP/m-p/212268#M17123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-14T14:18:21Z</dc:date>
    </item>
  </channel>
</rss>

