Hello, I would like to fill more than one lable with info in an IF then
statement.
I know I can do this.
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
end if
what if I have both lblsubtotal and lblfinaltotal.....how would also
populate lblfinaltotal.text with the mdecPizzatotal within that if than
statement?
I tried this, but got errors...
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) And lblFinaltotal.text =
FormatCurrency(mdecPizzatotal)
end if
thank for any help. 11 1507
The easiest way seems to be just get rid of the "and" and make two seperate
statements, No?
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text
=FormatCurrency(mdecPizzatotal)
end if
Or how about :
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text
=lblsubtotal.text
end if
--
/ Sean Mc /
Replace the "wish" with the screen name to contact.
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
"Jason" <no**@none.invalid> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl... Hello, I would like to fill more than one lable with info in an IF then statement.
I know I can do this.
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) end if
what if I have both lblsubtotal and lblfinaltotal.....how would also populate lblfinaltotal.text with the mdecPizzatotal within that if than statement?
I tried this, but got errors...
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) And lblFinaltotal.text = FormatCurrency(mdecPizzatotal) end if
thank for any help.
On Sat, 4 Oct 2003 21:01:09 -0400, "Jason" <no**@none.invalid> wrote: Hello, I would like to fill more than one lable with info in an IF then statement.
I know I can do this.
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) end if
what if I have both lblsubtotal and lblfinaltotal.....how would also populate lblfinaltotal.text with the mdecPizzatotal within that if than statement?
I tried this, but got errors...
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) And lblFinaltotal.text = FormatCurrency(mdecPizzatotal) end if
thank for any help.
Like this:
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
lblFinaltotal.text = FormatCurrency(mdecPizzatotal)
End If
// CHRIS
Hi there, If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =FormatCurrency(mdecPizzatotal) end if
Or how about: If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =lblsubtotal.text end if
? You sure earnt your name!
Nick.
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."
Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"Jason" <no**@none.invalid> scripsit: I would like to fill more than one lable with info in an IF then statement.
I know I can do this.
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) end if
what if I have both lblsubtotal and lblfinaltotal.....how would also populate lblfinaltotal.text with the mdecPizzatotal within that if than statement?
I tried this, but got errors...
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) And lblFinaltotal.text = FormatCurrency(mdecPizzatotal) end if
\\\
If radPizza.Checked Then
lblSubTotal.Text = ...
lblFinalTotal.Text = ...
End If
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
"What-a-Tool" <Fr***********************@cox.net> scripsit: The easiest way seems to be just get rid of the "and" and make two seperate statements, No?
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =FormatCurrency(mdecPizzatotal) end if
Or how about: If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =lblsubtotal.text end if
The statements must be separated with a newline or ":".
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Sorry - Didn't check my text after post -
when I sent it they were all on seperate lines as they should have been.
They weren't posted that way, though
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
lblFinaltotal.text=FormatCurrency(mdecPizzatotal)
end if
Or how about:
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
lblFinaltotal.text=lblsubtotal.text
end if
This is what I thought I sent
--
/ Sean Mc /
Replace the "wish" with the screen name to contact.
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
"What-a-Tool" <Fr***********************@cox.net> wrote in message
news:odLfb.40528$0Z5.39531@lakeread03... The easiest way seems to be just get rid of the "and" and make two
seperate statements, No?
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =FormatCurrency(mdecPizzatotal) end if
Or how about: If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =lblsubtotal.text end if
--
/ Sean Mc / Replace the "wish" with the screen name to contact.
"I have not failed. I've just found 10,000 ways that won't work." - Thomas Alva Edison (1847-1931)
"Jason" <no**@none.invalid> wrote in message news:uq**************@TK2MSFTNGP12.phx.gbl... Hello, I would like to fill more than one lable with info in an IF then statement.
I know I can do this.
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) end if
what if I have both lblsubtotal and lblfinaltotal.....how would also populate lblfinaltotal.text with the mdecPizzatotal within that if than statement?
I tried this, but got errors...
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) And lblFinaltotal.text
= FormatCurrency(mdecPizzatotal) end if
thank for any help.
"Herfried K. Wagner \\\ If radPizza.Checked Then lblSubTotal.Text = ... lblFinalTotal.Text = ... End If
Better is the solution from What-a-tool
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
lblFinaltotal.text=lblsubtotal.text
end if
Although it is very very very very slight
:-)))))))))))))
Cor
Awww - Jeeez!!
I finally saw a problem that was basic enough for me to reply to and I
F**ked it up. It was that freekin'
poltergeist that lives in my keyboard!
Yeah - Yeah! Thats what it was!
What - a Freakin Tool!!
--
/ Sean Mc /
Replace the "wish" with the screen name to contact.
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
"Nak" <a@a.com> wrote in message
news:O$**************@TK2MSFTNGP09.phx.gbl... Hi there,
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =FormatCurrency(mdecPizzatotal) end if
Or how about: If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =lblsubtotal.text end if ? You sure earnt your name!
Nick.
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ "No matter. Whatever the outcome, you are changed."
Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"Cor" <no*@non.com> scripsit: Better is the solution from What-a-tool If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text=lblsubtotal.text end if Although it is very very very very slight
Ah, I missed that both labels should be filled with the same value...
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Hi What-a-Tool,
ROFL.
Never mind - "You have not failed. You've just found 1 way that didn't
work."
Condolences and/or congratulations,
Fergus
"What-a-Tool" <Fr***********************@cox.net> wrote in message
news:LZWfb.42006$0Z5.24976@lakeread03... Sorry - Didn't check my text after post - when I sent it they were all on seperate lines as they should have been. They weren't posted that way, though
If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
lblFinaltotal.text=FormatCurrency(mdecPizzatotal)
end if
Ah yes, thats what I did, great, it worked, thanks.
Or how about: If radPizza.checked = true then
lblsubtotal.text = FormatCurrency(mdecPizzatotal)
lblFinaltotal.text=lblsubtotal.text
end if
This is what I thought I sent
--
/ Sean Mc / Replace the "wish" with the screen name to contact.
"I have not failed. I've just found 10,000 ways that won't work." - Thomas Alva Edison (1847-1931)
"What-a-Tool" <Fr***********************@cox.net> wrote in message news:odLfb.40528$0Z5.39531@lakeread03... The easiest way seems to be just get rid of the "and" and make two seperate statements, No?
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =FormatCurrency(mdecPizzatotal) end if
Or how about: If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) lblFinaltotal.text =lblsubtotal.text end if
--
/ Sean Mc / Replace the "wish" with the screen name to contact.
"I have not failed. I've just found 10,000 ways that won't work." - Thomas Alva Edison (1847-1931)
"Jason" <no**@none.invalid> wrote in message news:uq**************@TK2MSFTNGP12.phx.gbl... Hello, I would like to fill more than one lable with info in an IF
then statement.
I know I can do this.
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) end if
what if I have both lblsubtotal and lblfinaltotal.....how would also populate lblfinaltotal.text with the mdecPizzatotal within that if
than statement?
I tried this, but got errors...
If radPizza.checked = true then lblsubtotal.text = FormatCurrency(mdecPizzatotal) And
lblFinaltotal.text = FormatCurrency(mdecPizzatotal) end if
thank for any help.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: newbie_mw |
last post by:
Hi, I need urgent help with a novice problem. I would appreciate any
advice, suggestions... Thanks a lot in advance! Here it is:
I created a sign-up sheet (reg.html) where people fill in their...
|
by: Revman |
last post by:
I'm having problems opening and reading from a file to test a Class.
My diver main.cpp is fairly short but with a longer file open function
// Project #4 -- Main/driver program
#include...
|
by: Mervin Williams |
last post by:
I have several tables involved in my application, but the two in question
here are the company and address tables. The company table has
business_address_id and mailing_address_id columns, which...
|
by: Siv |
last post by:
Hi,
If I run the following:
strSQL = "Select * FROM Clients;"
da = New OleDb.OleDbDataAdapter(strSQL, Conn) 'Create data adapter
cb = New OleDb.OleDbCommandBuilder(da) ...
|
by: Cindy H |
last post by:
Hi
I'm using an access database and vb.net
I have been using the following type of function to get data from one table.
This is working great -
Public Shared Function GetAllLotsForSale()...
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted...
|
by: joaotsetsemoita |
last post by:
Hello everyone,
im completly new to vb.net and I was assigned to do a simple piece of
software that just had to select from um db in a MS access data base
and insert into a SQL server Database....
|
by: donal |
last post by:
I'm using MS Access; Is there an easy way to add a "0" in front of my zip codes? I am printing address lables and the "0" is not showing up? Help!
|
by: namartajhamb |
last post by:
I have one Confirm Message Box using Confirm() javascript function
which display two buttons Ok and Cancel. I want to Change these
buttons lables into YES/NO. how can i change lables of buttons....
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |