<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356301#M71533</link>
    <description>Hi Mark,&lt;BR /&gt;
&lt;BR /&gt;
Busy, busy, busy.&lt;BR /&gt;
&lt;BR /&gt;
We are at last getting some of our software up on the web site.&lt;BR /&gt;
&lt;BR /&gt;
Installation features seem to have taken far longer to sort out than the&lt;BR /&gt;
programs themselves.&lt;BR /&gt;
&lt;BR /&gt;
It would be so nice if you could give a user a program to try.  He loads it,&lt;BR /&gt;
checks the available macros, writes a menu file to call it.  Runs it.&lt;BR /&gt;
Decides he likes it so posts you the money. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;   real life  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Other than that it's about 9am, about 12 degrees C, 5% cloud cover and no&lt;BR /&gt;
wind today in Melbourne.  The beach is beautiful and I've just come back&lt;BR /&gt;
from walking our new poodle pup.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mark Propst" &lt;MARK&gt; wrote in message&lt;BR /&gt;
news:63B7907610F52D239C8CE6FF618B3C0A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi Laurie,&lt;BR /&gt;
&amp;gt; Hows' things down under?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Laurie Comerford" &lt;LAURIE&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:8C61F19B1EE17A48834EA0678316FDC4@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi Mark,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; The documentation will tell you the max length of a string.&lt;BR /&gt;
&amp;gt; yep, found it there&lt;BR /&gt;
&amp;gt; There are two kinds of strings: variable-length and fixed-length strings.&lt;BR /&gt;
&amp;gt; A variable-length string can contain up to approximately 2 billion (2^31)&lt;BR /&gt;
&amp;gt; characters.&lt;BR /&gt;
&amp;gt; A fixed-length string can contain 1 to approximately 64K (2^16)&lt;BR /&gt;
characters.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;  I would see&lt;BR /&gt;
&amp;gt; &amp;gt; advantages in putting as much in a single string as possible as you can&lt;BR /&gt;
&amp;gt; then&lt;BR /&gt;
&amp;gt; &amp;gt; use the "split" command to break the string down into a variant array.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I'll have to check that one out, I'm not familiar with it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for the response&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; G'day&lt;BR /&gt;
&amp;gt; Mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/LAURIE&gt;&lt;/MARK&gt;</description>
    <pubDate>Mon, 19 Aug 2002 15:10:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-08-19T15:10:26Z</dc:date>
    <item>
      <title>memory use - string or array of strings</title>
      <link>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356298#M71530</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I want to read a text file into memory and then examine elements in the&lt;BR /&gt;
string/s looking for various structures or characters and divide the string&lt;BR /&gt;
according to such characters.  The characters and structures will possibly&lt;BR /&gt;
span multiple lines of the text file with no set format I can rely on so I&lt;BR /&gt;
need to in effect ignore the original line breaks in the text file and look&lt;BR /&gt;
only at it's string/text values.&lt;BR /&gt;
&lt;BR /&gt;
Are there any memory issues I should consider if I want to read a text file&lt;BR /&gt;
into a string variable?&lt;BR /&gt;
&lt;BR /&gt;
The question is should I read it into one giant string and then process&lt;BR /&gt;
that - or -&lt;BR /&gt;
should I read it into an array of strings (one string for each line in&lt;BR /&gt;
file).  Is there a limit to the size of a string variable in vb? vba?&lt;BR /&gt;
&lt;BR /&gt;
My processing will have to look through the resultant structure (spanning&lt;BR /&gt;
lines of the original file) or basically ignoring the division into lines&lt;BR /&gt;
that the file has.&lt;BR /&gt;
That would possibly be an advantage in putting the whole file into one&lt;BR /&gt;
string- then my parsing routine doesn't need a bunch of code to jump to next&lt;BR /&gt;
line (item in array) and can just move through the string start to end.&lt;BR /&gt;
&lt;BR /&gt;
any thoughts on this?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
mark</description>
      <pubDate>Mon, 19 Aug 2002 07:51:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356298#M71530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-19T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: memory use - string or array of strings</title>
      <link>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356299#M71531</link>
      <description>Hi Mark,&lt;BR /&gt;
&lt;BR /&gt;
The documentation will tell you the max length of a string.  I would see&lt;BR /&gt;
advantages in putting as much in a single string as possible as you can then&lt;BR /&gt;
use the "split" command to break the string down into a variant array.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;BR /&gt;
"Mark Propst" &lt;MARK&gt; wrote in message&lt;BR /&gt;
news:8C48E983D2642DA66C942983291A00F0@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I want to read a text file into memory and then examine elements in the&lt;BR /&gt;
&amp;gt; string/s looking for various structures or characters and divide the&lt;BR /&gt;
string&lt;BR /&gt;
&amp;gt; according to such characters.  The characters and structures will possibly&lt;BR /&gt;
&amp;gt; span multiple lines of the text file with no set format I can rely on so I&lt;BR /&gt;
&amp;gt; need to in effect ignore the original line breaks in the text file and&lt;BR /&gt;
look&lt;BR /&gt;
&amp;gt; only at it's string/text values.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Are there any memory issues I should consider if I want to read a text&lt;BR /&gt;
file&lt;BR /&gt;
&amp;gt; into a string variable?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The question is should I read it into one giant string and then process&lt;BR /&gt;
&amp;gt; that - or -&lt;BR /&gt;
&amp;gt; should I read it into an array of strings (one string for each line in&lt;BR /&gt;
&amp;gt; file).  Is there a limit to the size of a string variable in vb? vba?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; My processing will have to look through the resultant structure (spanning&lt;BR /&gt;
&amp;gt; lines of the original file) or basically ignoring the division into lines&lt;BR /&gt;
&amp;gt; that the file has.&lt;BR /&gt;
&amp;gt; That would possibly be an advantage in putting the whole file into one&lt;BR /&gt;
&amp;gt; string- then my parsing routine doesn't need a bunch of code to jump to&lt;BR /&gt;
next&lt;BR /&gt;
&amp;gt; line (item in array) and can just move through the string start to end.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; any thoughts on this?&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MARK&gt;</description>
      <pubDate>Mon, 19 Aug 2002 13:55:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356299#M71531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-19T13:55:20Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356300#M71532</link>
      <description>Hi Laurie,&lt;BR /&gt;
Hows' things down under?&lt;BR /&gt;
&lt;BR /&gt;
"Laurie Comerford" &lt;LAURIE&gt; wrote in message&lt;BR /&gt;
news:8C61F19B1EE17A48834EA0678316FDC4@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi Mark,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The documentation will tell you the max length of a string.&lt;BR /&gt;
yep, found it there&lt;BR /&gt;
There are two kinds of strings: variable-length and fixed-length strings.&lt;BR /&gt;
A variable-length string can contain up to approximately 2 billion (2^31)&lt;BR /&gt;
characters.&lt;BR /&gt;
A fixed-length string can contain 1 to approximately 64K (2^16) characters.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;  I would see&lt;BR /&gt;
&amp;gt; advantages in putting as much in a single string as possible as you can&lt;BR /&gt;
then&lt;BR /&gt;
&amp;gt; use the "split" command to break the string down into a variant array.&lt;BR /&gt;
&lt;BR /&gt;
I'll have to check that one out, I'm not familiar with it.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the response&lt;BR /&gt;
&lt;BR /&gt;
G'day&lt;BR /&gt;
Mark&lt;/LAURIE&gt;</description>
      <pubDate>Mon, 19 Aug 2002 14:36:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356300#M71532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-19T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356301#M71533</link>
      <description>Hi Mark,&lt;BR /&gt;
&lt;BR /&gt;
Busy, busy, busy.&lt;BR /&gt;
&lt;BR /&gt;
We are at last getting some of our software up on the web site.&lt;BR /&gt;
&lt;BR /&gt;
Installation features seem to have taken far longer to sort out than the&lt;BR /&gt;
programs themselves.&lt;BR /&gt;
&lt;BR /&gt;
It would be so nice if you could give a user a program to try.  He loads it,&lt;BR /&gt;
checks the available macros, writes a menu file to call it.  Runs it.&lt;BR /&gt;
Decides he likes it so posts you the money. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;   real life  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Other than that it's about 9am, about 12 degrees C, 5% cloud cover and no&lt;BR /&gt;
wind today in Melbourne.  The beach is beautiful and I've just come back&lt;BR /&gt;
from walking our new poodle pup.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mark Propst" &lt;MARK&gt; wrote in message&lt;BR /&gt;
news:63B7907610F52D239C8CE6FF618B3C0A@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hi Laurie,&lt;BR /&gt;
&amp;gt; Hows' things down under?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Laurie Comerford" &lt;LAURIE&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:8C61F19B1EE17A48834EA0678316FDC4@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hi Mark,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; The documentation will tell you the max length of a string.&lt;BR /&gt;
&amp;gt; yep, found it there&lt;BR /&gt;
&amp;gt; There are two kinds of strings: variable-length and fixed-length strings.&lt;BR /&gt;
&amp;gt; A variable-length string can contain up to approximately 2 billion (2^31)&lt;BR /&gt;
&amp;gt; characters.&lt;BR /&gt;
&amp;gt; A fixed-length string can contain 1 to approximately 64K (2^16)&lt;BR /&gt;
characters.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;  I would see&lt;BR /&gt;
&amp;gt; &amp;gt; advantages in putting as much in a single string as possible as you can&lt;BR /&gt;
&amp;gt; then&lt;BR /&gt;
&amp;gt; &amp;gt; use the "split" command to break the string down into a variant array.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I'll have to check that one out, I'm not familiar with it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for the response&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; G'day&lt;BR /&gt;
&amp;gt; Mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/LAURIE&gt;&lt;/MARK&gt;</description>
      <pubDate>Mon, 19 Aug 2002 15:10:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/memory-use-string-or-array-of-strings/m-p/356301#M71533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-08-19T15:10:26Z</dc:date>
    </item>
  </channel>
</rss>

