<?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 Re: Using Str$ to convert integers in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661495#M33952</link>
    <description>Sorry Jeff, I did not see JoeParkers post.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNETIS_ALL&gt; wrote in message &lt;BR /&gt;
news:5193222@discussion.autodesk.com...&lt;BR /&gt;
Right, that's what joeparker said, too. I was merely answering Andrew's&lt;BR /&gt;
question of "Why does it do it" with a quote from a source he could have&lt;BR /&gt;
looked up just as easily as I did........&lt;BR /&gt;
:-)&lt;BR /&gt;
&lt;BR /&gt;
"Jorge Jimenez" &lt;JORGE&gt; wrote in message&lt;BR /&gt;
news:5193221@discussion.autodesk.com...&lt;BR /&gt;
Or use&lt;BR /&gt;
 Trim(Str(iVertex +1))&lt;BR /&gt;
-- &lt;BR /&gt;
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica&lt;/JORGE&gt;&lt;/MIFFATSONICDOTNETIS_ALL&gt;</description>
    <pubDate>Fri, 02 Jun 2006 01:33:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-02T01:33:21Z</dc:date>
    <item>
      <title>Using Str$ to convert integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661490#M33947</link>
      <description>I have this simple code:&lt;BR /&gt;
&lt;BR /&gt;
Str$(iVertex + 1)&lt;BR /&gt;
&lt;BR /&gt;
Say that iVertex is 29....&lt;BR /&gt;
&lt;BR /&gt;
The string returned from this call is " 30"&lt;BR /&gt;
&lt;BR /&gt;
Why am I getting the space before the number in the string?&lt;BR /&gt;
&lt;BR /&gt;
It should be "30"&lt;BR /&gt;
&lt;BR /&gt;
This happenes for all of the values that I attempt to convert into strings.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.&lt;BR /&gt;
&lt;BR /&gt;
Andrew</description>
      <pubDate>Thu, 01 Jun 2006 15:16:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661490#M33947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-01T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Str$ to convert integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661491#M33948</link>
      <description>Trim(Str$(iVertex + 1))&lt;BR /&gt;
&lt;BR /&gt;
&lt;AJTRUCKLE&gt; wrote in message news:5192291@discussion.autodesk.com...&lt;BR /&gt;
I have this simple code:&lt;BR /&gt;
&lt;BR /&gt;
Str$(iVertex + 1)&lt;BR /&gt;
&lt;BR /&gt;
Say that iVertex is 29....&lt;BR /&gt;
&lt;BR /&gt;
The string returned from this call is " 30"&lt;BR /&gt;
&lt;BR /&gt;
Why am I getting the space before the number in the string?&lt;BR /&gt;
&lt;BR /&gt;
It should be "30"&lt;BR /&gt;
&lt;BR /&gt;
This happenes for all of the values that I attempt to convert into strings.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.&lt;BR /&gt;
&lt;BR /&gt;
Andrew&lt;/AJTRUCKLE&gt;</description>
      <pubDate>Thu, 01 Jun 2006 15:54:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661491#M33948</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-01T15:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Str$ to convert integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661492#M33949</link>
      <description>From the elusive Help file for Str Function:&lt;BR /&gt;
Remarks&lt;BR /&gt;
&lt;BR /&gt;
When numbers are converted to strings, a leading space is always reserved &lt;BR /&gt;
for the sign of number. If number is positive, the returned string contains &lt;BR /&gt;
a leading space and the plus sign is implied.&lt;BR /&gt;
&lt;BR /&gt;
Use the Format function to convert numeric values you want formatted as &lt;BR /&gt;
dates, times, or currency or in other user-defined formats. Unlike Str, the &lt;BR /&gt;
Format function doesn't include a leading space for the sign of number.&lt;BR /&gt;
&lt;BR /&gt;
:-)&lt;BR /&gt;
&lt;BR /&gt;
&lt;AJTRUCKLE&gt; wrote in message news:5192291@discussion.autodesk.com...&lt;BR /&gt;
I have this simple code:&lt;BR /&gt;
&lt;BR /&gt;
Str$(iVertex + 1)&lt;BR /&gt;
&lt;BR /&gt;
Say that iVertex is 29....&lt;BR /&gt;
&lt;BR /&gt;
The string returned from this call is " 30"&lt;BR /&gt;
&lt;BR /&gt;
Why am I getting the space before the number in the string?&lt;BR /&gt;
&lt;BR /&gt;
It should be "30"&lt;BR /&gt;
&lt;BR /&gt;
This happenes for all of the values that I attempt to convert into strings.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.&lt;BR /&gt;
&lt;BR /&gt;
Andrew&lt;/AJTRUCKLE&gt;</description>
      <pubDate>Thu, 01 Jun 2006 22:23:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661492#M33949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-01T22:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Str$ to convert integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661493#M33950</link>
      <description>Or use&lt;BR /&gt;
 Trim(Str(iVertex +1))&lt;BR /&gt;
-- &lt;BR /&gt;
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNETIS_ALL&gt; wrote in message &lt;BR /&gt;
news:5193166@discussion.autodesk.com...&lt;BR /&gt;
From the elusive Help file for Str Function:&lt;BR /&gt;
Remarks&lt;BR /&gt;
&lt;BR /&gt;
When numbers are converted to strings, a leading space is always reserved&lt;BR /&gt;
for the sign of number. If number is positive, the returned string contains&lt;BR /&gt;
a leading space and the plus sign is implied.&lt;BR /&gt;
&lt;BR /&gt;
Use the Format function to convert numeric values you want formatted as&lt;BR /&gt;
dates, times, or currency or in other user-defined formats. Unlike Str, the&lt;BR /&gt;
Format function doesn't include a leading space for the sign of number.&lt;BR /&gt;
&lt;BR /&gt;
:-)&lt;BR /&gt;
&lt;BR /&gt;
&lt;AJTRUCKLE&gt; wrote in message news:5192291@discussion.autodesk.com...&lt;BR /&gt;
I have this simple code:&lt;BR /&gt;
&lt;BR /&gt;
Str$(iVertex + 1)&lt;BR /&gt;
&lt;BR /&gt;
Say that iVertex is 29....&lt;BR /&gt;
&lt;BR /&gt;
The string returned from this call is " 30"&lt;BR /&gt;
&lt;BR /&gt;
Why am I getting the space before the number in the string?&lt;BR /&gt;
&lt;BR /&gt;
It should be "30"&lt;BR /&gt;
&lt;BR /&gt;
This happenes for all of the values that I attempt to convert into strings.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.&lt;BR /&gt;
&lt;BR /&gt;
Andrew&lt;/AJTRUCKLE&gt;&lt;/MIFFATSONICDOTNETIS_ALL&gt;</description>
      <pubDate>Thu, 01 Jun 2006 23:53:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661493#M33950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-01T23:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Str$ to convert integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661494#M33951</link>
      <description>Right, that's what joeparker said, too. I was merely answering Andrew's &lt;BR /&gt;
question of "Why does it do it" with a quote from a source he could have &lt;BR /&gt;
looked up just as easily as I did........&lt;BR /&gt;
:-)&lt;BR /&gt;
&lt;BR /&gt;
"Jorge Jimenez" &lt;JORGE&gt; wrote in message &lt;BR /&gt;
news:5193221@discussion.autodesk.com...&lt;BR /&gt;
Or use&lt;BR /&gt;
 Trim(Str(iVertex +1))&lt;BR /&gt;
-- &lt;BR /&gt;
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica&lt;/JORGE&gt;</description>
      <pubDate>Thu, 01 Jun 2006 23:57:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661494#M33951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-01T23:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Str$ to convert integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661495#M33952</link>
      <description>Sorry Jeff, I did not see JoeParkers post.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNETIS_ALL&gt; wrote in message &lt;BR /&gt;
news:5193222@discussion.autodesk.com...&lt;BR /&gt;
Right, that's what joeparker said, too. I was merely answering Andrew's&lt;BR /&gt;
question of "Why does it do it" with a quote from a source he could have&lt;BR /&gt;
looked up just as easily as I did........&lt;BR /&gt;
:-)&lt;BR /&gt;
&lt;BR /&gt;
"Jorge Jimenez" &lt;JORGE&gt; wrote in message&lt;BR /&gt;
news:5193221@discussion.autodesk.com...&lt;BR /&gt;
Or use&lt;BR /&gt;
 Trim(Str(iVertex +1))&lt;BR /&gt;
-- &lt;BR /&gt;
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica&lt;/JORGE&gt;&lt;/MIFFATSONICDOTNETIS_ALL&gt;</description>
      <pubDate>Fri, 02 Jun 2006 01:33:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661495#M33952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-02T01:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Str$ to convert integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661496#M33953</link>
      <description>Thanks to everyone for their comments, answers, gripes etc..&lt;BR /&gt;
&lt;BR /&gt;
Much appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Andrew</description>
      <pubDate>Fri, 02 Jun 2006 06:37:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661496#M33953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-02T06:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Str$ to convert integers</title>
      <link>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661497#M33954</link>
      <description>Skip the Trim and change your Str$ function to CStr and you get no spaces &lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;AJTRUCKLE&gt; wrote in message news:5193393@discussion.autodesk.com...&lt;BR /&gt;
Thanks to everyone for their comments, answers, gripes etc..&lt;BR /&gt;
&lt;BR /&gt;
Much appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Andrew&lt;/AJTRUCKLE&gt;</description>
      <pubDate>Mon, 05 Jun 2006 19:29:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/using-str-to-convert-integers/m-p/1661497#M33954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-05T19:29:43Z</dc:date>
    </item>
  </channel>
</rss>

