|
-
Sep 2nd, 2010, 04:43 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Message box
Hi,
I have the following message box prompt..
Code:
MsgBox("New Payment Run has been added with Payment reference: txtPayRef.text", MsgBoxStyle.Information, "VeriSIS")
I want it to read the value in txtPayRef which is the reference of the payment. I tried inserting txtPayRef.text but it is not correct as it shows txtPayRef.Text.
Any ideas please..
Thanks
-
Sep 2nd, 2010, 05:31 AM
#2
Junior Member
Re: Message box
I'd try moving the quotation to the place where the text ends and the variable starts...i.e. after the colon .
-
Sep 2nd, 2010, 05:45 AM
#3
Addicted Member
Re: Message box
This is the code:
Code:
MsgBox("New Payment Run has been added with Payment reference: " & txtPayRef.text, MsgBoxStyle.Information, "VeriSIS")
-
Sep 2nd, 2010, 05:55 AM
#4
Re: Message box
<Pet Peeve>If you are going to be coding in VB.NET then use VB.NET, NOT legacy VB6 code. The correct syntax is:
vb.net Code:
MessageBox.Show("New Payment Run has been added with Payment reference: " & txtPayRef.Text, _
"VeriSys", MessageBoxButtons.OK, MessageBoxIcon.Information)
</Pet Peeve>
-
Sep 2nd, 2010, 06:05 AM
#5
Thread Starter
Frenzied Member
-
Sep 2nd, 2010, 08:48 AM
#6
Lively Member
-
Sep 3rd, 2010, 01:42 AM
#7
Junior Member
Re: Message box
 Originally Posted by mjenkinson05
lol @Hack
Ha ha, yeah, good point though.
AKA GettinBetter - I couldn't remember my user name for my home loggin, and needed the email to go to my works address. Hence now have two usernames. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|