|
-
Jan 15th, 2009, 05:20 PM
#1
Thread Starter
Frenzied Member
Need to load 2 variables on the Form Name
Hi,
I need to load 2 variables in the Title Bar as the Form.Name on Page load but this isnt working.
Me.Name = fname + " " + surname
Any help please?
------------------------------------------------------------------------
If an answer to your question has been helpful, then please, Rate it! 
-
Jan 15th, 2009, 05:28 PM
#2
Frenzied Member
Re: Need to load 2 variables on the Form Name
Me.name is the internal name for the form. Change it to
vb Code:
me.text = fname + " " + surname
-
Jan 15th, 2009, 05:28 PM
#3
Re: Need to load 2 variables on the Form Name
In what way isnt that working? You need to give us as much information as possible.
Edit: Ah yes, good find irishman
-
Jan 15th, 2009, 05:30 PM
#4
Frenzied Member
Re: Need to load 2 variables on the Form Name
Number one swede, number one
-
Jan 15th, 2009, 05:34 PM
#5
Thread Starter
Frenzied Member
Re: Need to load 2 variables on the Form Name
Thanks guys, became rusty!
Last edited by angelica; Jan 15th, 2009 at 05:38 PM.
------------------------------------------------------------------------
If an answer to your question has been helpful, then please, Rate it! 
-
Jan 15th, 2009, 05:35 PM
#6
Re: Need to load 2 variables on the Form Name
Are you still having problems displaying the two variables?
-
Jan 15th, 2009, 05:37 PM
#7
Frenzied Member
Re: Need to load 2 variables on the Form Name
It needs to be in the form load event and would have to be
vb Code:
me.text = "blah blah blah"
Your missing the " "
-
Jan 15th, 2009, 05:50 PM
#8
Frenzied Member
Re: Need to load 2 variables on the Form Name
-
Jan 15th, 2009, 07:17 PM
#9
Re: Need to load 2 variables on the Form Name
should you not also be using the & operator instead of + with strings... or does it not make any difference?
-
Jan 15th, 2009, 07:19 PM
#10
Re: Need to load 2 variables on the Form Name
As long as you have Option Strict ON, it should make no real difference. I much prefer & to +, since it makes it more clear, but they both work the same. Without Option Strict, there is the chance that certain variables might be added rather than concatenated, which has tripped up people in the past, but it isn't common.
My usual boring signature: Nothing
 
-
Jan 15th, 2009, 07:42 PM
#11
Frenzied Member
Re: Need to load 2 variables on the Form Name
Rep+ Shaggy I never realised that, although I have option strict always on!
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
|