Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Extract paragraphs from text file

"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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Replace Paragraphs With New Paragraphs In Excel? vselin1 Excel Discussion (Misc queries) 7 July 29th 09 04:21 PM
how to format large word paragraphs into an excel file dingbat Excel Worksheet Functions 1 June 16th 09 07:14 PM
formating text cell paragraphs roypea Excel Discussion (Misc queries) 1 January 30th 08 06:03 PM
Getting paragraphs of text into a textbox control Gordon[_2_] Excel Programming 5 August 19th 05 08:47 AM
Text paragraphs and image Mika[_2_] Excel Programming 1 July 23rd 03 02:38 AM


All times are GMT +1. The time now is 04:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"