Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > calling sub routines from a text file?


Reply
 
Thread Tools Display Modes
  #1  
Old 09-30-2008, 03:59 PM
texmex texmex is offline
Centurion
 
Join Date: Dec 2003
Location: Australia
Posts: 163
Default calling sub routines from a text file?


Hi All,

I have a number of sub routines that make specific print sizes 6x4, 5x7, 8x10 etc. I was wondering if it is possible to open a text file and depending on the contents call a sub routine like 6x4 and 8x10. Or do I need to make a select case and then decide what to print?

thanks for any input.
Reply With Quote
  #2  
Old 09-30-2008, 07:03 PM
webbone's Avatar
webbone webbone is offline
Hydrogen Powered

Administrator
* Expert *
 
Join Date: Jul 2003
Location: Sacramento, CA
Posts: 6,090
Default

You'll need to have a Select Case statement to choose what routine to call - you can base the decision on what you read out of the file. You could also use and If..Then..ElseIf construct depending on how many choices you have.
__________________
"With the appearance of the AddressOf operator, an entire industry has developed among authors illustrating how to do previously impossible tasks using Visual Basic. Another industry is rapidly developing among consultants helping users who have gotten into trouble attempting these tasks." -Dan Appleman
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->