Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Adding only enabled Textboxes!!!!!


Reply
 
Thread Tools Display Modes
  #1  
Old 10-22-2002, 10:55 AM
danielalmada
Guest
 
Posts: n/a
Default Adding only enabled Textboxes!!!!!


I want to add several textboxs that are enabled by a checkbox next to it.

How can I leave the not abled textboxs out of the adding equation????

I need ur help
Reply With Quote
  #2  
Old 10-22-2002, 10:57 AM
crabby's Avatar
crabby crabby is offline
mostly gone

Retired Moderator
* Expert *
 
Join Date: Aug 2002
Location: London / UK
Posts: 2,721
Default

ok how many textboxes and are they in a dyn array or just single textboxes ?
__________________
there are always two sides of a story and 12 ways to sing a song or write some code. so whats wrong ?

Avatar by lebb
Reply With Quote
  #3  
Old 10-22-2002, 11:02 AM
GMan_NC's Avatar
GMan_NC GMan_NC is offline
Proud Daddy

Forum Leader
* Expert *
 
Join Date: Sep 2002
Location: North Carolina, USA
Posts: 1,962
Default

Code:
Dim total as single If TextBox1.Enabled = True Then total = total + Val(TextBox1.Text) If TextBox2.Enabled = True Then total = total + Val(TextBox2.Text) TextBox3.Text = total
__________________
A morning without coffee is like something without something else.
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
 
 
-->