| Author |
Message |
Javier Ruiz
Guest
|
Posted:
Thu Jan 13, 2005 9:23 pm Post subject:
function for channels |
|
|
--
Hello Everyone
do you know a function or a method in VB for convert the Displayname
property of the channel to a string?. I need this function because I have to
divide the displayname of the channel. |
|
| Back to top |
|
 |
Spencer Harbar [MVP]
Guest
|
Posted:
Thu Jan 13, 2005 9:28 pm Post subject:
Re: function for channels |
|
|
does channel.DisplayName.ToString not meet your requirement?
hth
spence
www.mcmsfaq.com
"Javier Ruiz" <javirs@asae.com.mx> wrote in message
news:343E3558-3AE3-4EBA-A057-1F2F09778D61@microsoft.com...
| Quote: |
--
Hello Everyone
do you know a function or a method in VB for convert the Displayname
property of the channel to a string?. I need this function because I have
to
divide the displayname of the channel. |
|
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Thu Jan 13, 2005 9:41 pm Post subject:
Re: function for channels |
|
|
Hi Javier,
the DisplayName IS already a string!
It does not have to be converted.
Cheers,
Stefan.
"Javier Ruiz" <javirs@asae.com.mx> wrote in message
news:343E3558-3AE3-4EBA-A057-1F2F09778D61@microsoft.com...
| Quote: |
--
Hello Everyone
do you know a function or a method in VB for convert the Displayname
property of the channel to a string?. I need this function because I have
to
divide the displayname of the channel. |
|
|
| Back to top |
|
 |
Javier Ruiz
Guest
|
Posted:
Thu Jan 13, 2005 10:33 pm Post subject:
Re: function for channels |
|
|
I explain you, i need to divide the Displayname property because i have this
in the display name property of the channel "Acceso|Access" i need to divide
this and determine that Displayname to display in the IE.
i made this function but it isn't functional
Text = InStr(1, objBaseChannel.DisplayName.tostring, "|", vbTextCompare)
If text > 0 Then
idioma = Mid(objBaseChannel.DisplayName.tostring, 1, text - 1)
"Stefan [MSFT]" wrote:
| Quote: | Hi Javier,
the DisplayName IS already a string!
It does not have to be converted.
Cheers,
Stefan.
"Javier Ruiz" <javirs@asae.com.mx> wrote in message
news:343E3558-3AE3-4EBA-A057-1F2F09778D61@microsoft.com...
--
Hello Everyone
do you know a function or a method in VB for convert the Displayname
property of the channel to a string?. I need this function because I have
to
divide the displayname of the channel.
|
|
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Thu Jan 13, 2005 11:47 pm Post subject:
Re: function for channels |
|
|
Hi Javier,
sorry my VB is very bad but the following C# code does what you are looking
for:
Text = objBaseChannel.DisplayName.IndexOf('|');
if (Text > 0)
idioma =
objBaseChannel.DisplayName.substring(0,objBaseChannel.DisplayName.IndexOf('|
')-1);
running this through a VB converter produced this output:
[Text] = objBaseChannel.DisplayName.IndexOf("|"c)
If [Text] > 0 Then
idioma = objBaseChannel.DisplayName.substring(0,
objBaseChannel.DisplayName.IndexOf("|"c) - 1)
End If
"Text" seems to be a reserved property thats why you need to enclose it in
"["
Cheers,
Stefan.
"Javier Ruiz" <javirs@asae.com.mx> wrote in message
news:10D81916-0B12-469A-A120-8FA7C6190583@microsoft.com...
| Quote: | I explain you, i need to divide the Displayname property because i have
this
in the display name property of the channel "Acceso|Access" i need to
divide
this and determine that Displayname to display in the IE.
i made this function but it isn't functional
Text = InStr(1, objBaseChannel.DisplayName.tostring, "|", vbTextCompare)
If text > 0 Then
idioma = Mid(objBaseChannel.DisplayName.tostring, 1, text - 1)
"Stefan [MSFT]" wrote:
Hi Javier,
the DisplayName IS already a string!
It does not have to be converted.
Cheers,
Stefan.
"Javier Ruiz" <javirs@asae.com.mx> wrote in message
news:343E3558-3AE3-4EBA-A057-1F2F09778D61@microsoft.com...
--
Hello Everyone
do you know a function or a method in VB for convert the Displayname
property of the channel to a string?. I need this function because I
have
to
divide the displayname of the channel.
|
|
|
| Back to top |
|
 |
|
|
|
|