-
I need help i need to figure out how to write a code like this: "If label1.text "blah" and label2.text = "blah" and label3.text = "blah" then msgbox "blah"" THis isnt what im doing i am just using it as an example but i have tried almost everything and dont know how to do it.
-
HI,
not sure exactly what it is you are trying to do. If you are trying to pass a string as piece of code and trying to get it to run, then the answer is you can't!
If you want to show stuff as code on these forums then look
here: http://forums.vb-world.net/index.php?action=bbcode
Hope this helps
Shaun
-
Can you post your code ? What you describe here really doesn't sound hard...
You may have a syntax error somewhere...
-
a label has a caption property, not a text property.
-
It sounds like you want to do something like this
If Label1.caption = "X" and Label2.caption = "Y" And_
Label3.Caption = "Z" Then MSGBOX "Blah"