Re: string manipulation

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



or of course

stick it in SQL Server and use ParseName in order to navigate back
through particular nodes.

for example-- I used this for walking through various nodes of an IP
Address

Select ParseName('192.168.4.1', 1) = 192
Select ParseName('192.168.4.1', 2) = 168
Select ParseName('192.168.4.1', 3) = 4
Select ParseName('192.168.4.1', 4) = 1

or something along those lines

that function is designed for something else-- but it works quite well
for parsing on periods-- worse comes to worse use the reverse function
first LoL





On Apr 4, 8:26 am, "Parag Joshi" <p...@xxxxxxxxxxxxx> wrote:
HI Mike
Here is a way to do it:

Dim str As String = "netbiosname.domain.com" 'Replace this with what is
returned by the code
TextBox1.Text = str.Substring(0, str.IndexOf("."))
Regards
Parag

"Mike" <MLLeh...@xxxxxxxxxxxxxxxxx> wrote in message

news:32784A31-3C76-4E03-B85F-25E5AF35B891@xxxxxxxxxxxxxxxx



I am running vs 2005 and withing vb I have code that will lookup dns and
will give me the host name back, but I need to truncate the host name and
have it populate into a text box on a form.

The code brings back netbiosname.domain.com

I want to be able to truncate it to show netbiosname only and populate it
into a textbox within a form.- Hide quoted text -

- Show quoted text -


.



Relevant Pages