"GS" wrote:
I thought a function was supposed to exit once it is assigned
a value?
I've never heard of such a rule. Who made this one up?
I guess I was thinking too much about a different programming
language, such as C or C++ where it uses a "return" statement
to (supposedly) immediately exit from a function and return
one value.
In my mind, I guess was comparing the C/C++ "return" command
to Visual Basic's concept of assigning a value to the name of
function while inside that function. I just thought it was kind of
odd, so I had to ask out of curiousity.
Well, your assessment that it's 'odd' is accurate because I've never
seen an example where a string var is not used (sized/loaded) before
assigning its val to the function. In this case, though, nothing is
being done to the retrieved data that warrants the extra coding.
BTW, that ReadTextFile is very useful, especially when used
in conjection with the Split() function.
Its companion to write is also very useful, especially when used in
conjunction with the Join() function!
Awesome stuff! Thanks.
You're welcome! I appreciate the feedback...
--
Garry
Free usenet access at
http://www.eternal-september.org
Classic
VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.
vb.general.discussion