function for channels
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
function for channels

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Javier Ruiz
Guest





Posted: Thu Jan 13, 2005 9:23 pm    Post subject: function for channels Reply with 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
Spencer Harbar [MVP]
Guest





Posted: Thu Jan 13, 2005 9:28 pm    Post subject: Re: function for channels Reply with quote

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 Reply with 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...
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 Reply with 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:

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 Reply with quote

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
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB