Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
marat
Yak Posting Veteran
85 Posts |
Posted - 2004-04-12 : 22:04:38
|
| Hi, are two examples of code I suppose should come with the same result,but in case when I am using SUBSTRING function I get an error message "Type mismatch: 'substring'.Why it happens? Dim sSourceFile DTSGlobalVariables("SuppCode").value = left(righ(sSourceFile,9),1) DTSGlobalVariables("SuppCode").value = substring(sSourceFile,4,1) |
|
|
ehorn
Master Smack Fu Yak Hacker
1632 Posts |
Posted - 2004-04-12 : 22:59:48
|
| The vb equivalent of SUBSTRING is MID() |
 |
|
|
marat
Yak Posting Veteran
85 Posts |
Posted - 2004-04-12 : 23:19:31
|
| Thanks |
 |
|
|
|
|
|