VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Dotless IP Address

Trunks  (1 Submission)   Internet/HTML   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This will convert an existing IP address into an IP address without any periods (dotless IP). Although the dotless IP code is useless, the CountWords and GetWord functions are very useful. CountWords will count the number of words in a string and GetWord will get that specified word. You can also choose what character seperates the words, such as a space or period. GetWord was created by James Lewis with some modification.

Inputs
IP_Dotless#( Byval ipAddress$) 'IP address to convert CountWords&(ByVal inWord$,_ 'Word to check ByVal inSep$) 'Seperation chracter GetWord$(ByVal inWord$,_ 'Word to check ByVal inCount&,_ 'Position where word is ByVal inSep$) 'Seperation chracter

Assumes
A quick example to copy the ip address into the clipboard would look somewhat like this: Sub Form_Load() Clipboard.Clear Clipboard.SetText _ Trim$(Str$(IP_Dotless#("216.46.226.13"))) End End Sub

Returns
IP_Dotless# returns ip as double CountWords& returns number of words as long GetWord$ returns specified word as string

Rate Dotless IP Address (2(2 Vote))
Dotless IP Address.bas

Dotless IP Address Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters