|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Oh my god,I've got errors again!
Hi there .My question is related to VBscript ...I suppose.
suppose that I have a variable called num containing the text "20828" .then I want to concatinate this variable with another text to form the expression "m020828@mo.com" .What I did is : if num="20828" then eml="m0"&num&"@m0.com" the code gave error .Could you please help? |
|
#2
|
|||
|
|||
|
May be this helps...
U Need Spaces In Between & ..// Code:
If num = "20828" Then eml = "m0" & num & "@m0.com"
__________________
I May Have Misinterpret U'r Post Correct Me If I Am Wrong......// Enjoy Coding........................../// zak2zak |
|
#3
|
|||
|
|||
|
Thank for replying ,
I tried what you said but it didn't work.. |
|
#4
|
|||
|
|||
|
What is the error?
|
|
#5
|
|||
|
|||
|
Handwriting error!...
|
|
#6
|
|||
|
|||
|
Oh my god! It was simple .I just had to put everything in one line .It is now working ..
Thanks |
|
#7
|
||||
|
||||
|
if you leave it on seperate lines, you must close any block that you open.
i.e. and If statement is a block If ... Then End If Also, your subject title is unacceptable. You can refer to the sticky thread at the top of this forum for more information on how to post a question. |
|
#8
|
|||
|
|||
|
Thanks Onslaught for replying..
About the subject title,I think that it is descriptive in a way or another.At least you can infer-without any doubt- that I have errors in my code .And since this is the VB section of the forum,then the error is in VB.Very easy and descriptive! Sorry if you didn't like this reply.. In the future ,I'll try to use another methodology for writing titles.. |
|
#9
|
||||
|
||||
|
Descriptive it isn't.
I can infer, without a doubt, that before I opened the thread I had no idea what your error was about. Most everyone that post a thread in this forum has a problem they need help with, so it is helpful for both the people who help here, and the people searching for answers here that the subjects be descriptive to the problem the original poster is encountering. Subject titles like the one you chose does nothing to help the community. If you read the sticky thread at the top of this forum, you will get some decent information on the methodology to use to post a question here. |
|
#10
|
|||
|
|||
|
OK Onslaught,
I will not argue with you ..I think you're right .. But I think we must focus on the subject itself.. By the way,it is not my style to use such titles ! Thanks for your note.. |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Oh my god,I've got errors again! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|