Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 15th, 2003, 09:22 AM
jharber15 jharber15 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 41 jharber15 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
radial buttons and printing to text

I was wondering what would be the easiest way to say that a button is selected, so print this to file. This was my original idea.

Select Case options
Case Option1 = True
'Print #filenum, "ZP";
Case Option2 = True
'Print #filenum, "XP";
Case Option3 = True
'Print #filenum, "YP";
Case Option4 = True
'Print #filenum, "YC";
Case Option5 = True
'Print #filenum, "XC";
Case Option6 = True
'Print #filenum, "ZC";

For some reason this doesn't seem to work. All I want to do is when one of the options is selected, print text to file. It seems so easy, but my VB noob brain isn't working too well today. I'd appreciate any help.

Reply With Quote
  #2  
Old October 15th, 2003, 09:58 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
what is the options??It's a array of the option control??If u use the option1 control array,u should modify your code like it:
For i = 0 To Option1.count-1
if Option1(i)=true then
select case i
case 0
Print #filenum, "ZP";
case 1
'Print #filenum, "XP";
....

Reply With Quote
  #3  
Old October 15th, 2003, 10:09 AM
jharber15 jharber15 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 41 jharber15 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
the option are the names of the radials that i have on my form

Reply With Quote
  #4  
Old October 15th, 2003, 08:08 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
I recommend u to use my way to do it..It's a fast solution.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > radial buttons and printing to text


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway