Login | |
|
 |
Adding Two Variables in vbs - 7/2/2007 10:17:32 PM
|
|
 |
|
| |
atulisc
Posts: 6
Score: 0
Joined: 7/2/2007
Status: offline
|
Hallo, I got a issue with adding two variables in my script. Could anybody suggest me some idea how to solve the issue? Below code doesn't work Call UpdateProperty(objtargetuser,"displayname",objRecordSet.Fields("sn") & ", " & objRecordSet.Fields("givenname").value) objtargetuser.SetInfo I tried this too , still it is not working Call UpdateProperty(objtargetuser,"displayname",objRecordSet.Fields("sn").value & ", " & objRecordSet.Fields("givenname").value) objtargetuser.SetInfo Below code works for one vairable. Call UpdateProperty(objtargetuser,"displayname",objRecordSet.Fields("sn").value) objtargetuser.SetInfo Thanks. Regards, Atul
|
|
| |
|
|
|
 |
RE: Adding Two Variables in vbs - 7/3/2007 1:22:15 AM
|
|
 |
|
| |
ebgreen
Posts: 5032
Score: 31
Joined: 7/12/2005
Status: online
|
Try this: strTest = objRecordSet.Fields("sn").value & ", " & objRecordSet.Fields("givenname").value WScript.Echo strTest Call UpdateProperty(objtargetuser,"displayname",strTest) Verify that the string is what you think it is.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|