itdaddy
New member
- Joined
- Mar 26, 2010
- Messages
- 4
- Programming Experience
- 1-3
Hello everyone
I am trying to figure out how to use the format.string() function
This is what I have. I have 3 data string inputs of the format as folllows:
pcname bigservername (maybe 20 character max)
ip address ###.###.###.### (ex: 192.168.1.10)
macid ##-##-##-##-##-## hex values for # (ex: 00-23-AF-33-BC-CE)
also the character in above can very on the Macid and the ip address
no filler zeros are used it could only be 1 digit and not 3 (###) or
it could be 3 digits ### patter but a max of 3 and min of 1 in the ip address?
I am trying to run a If Then Else statment using this format.string()
so I can filter the type of search string inputted so depending on the
type of format used in the search string, the data selects a cert display code.
I just need to figure out how to use the fomat.string() for an input box
that takes a string value. so maybe I should have the ip address be a number? and the hex a number and the pc name a string with 20 characters max? I was thinking this but I do not know how nor can I find anything on how to set up say this: (my pseudo code)
I know this is crued but I just dont know how to make the input format string work in vb.net and to find what I need on the NET is daunting..
Can you point me in the right direction..
thanks. All I need is to understand how to do the above code but real code
not my crap above..thanks
-itdaddy
I am trying to figure out how to use the format.string() function
This is what I have. I have 3 data string inputs of the format as folllows:
pcname bigservername (maybe 20 character max)
ip address ###.###.###.### (ex: 192.168.1.10)
macid ##-##-##-##-##-## hex values for # (ex: 00-23-AF-33-BC-CE)
also the character in above can very on the Macid and the ip address
no filler zeros are used it could only be 1 digit and not 3 (###) or
it could be 3 digits ### patter but a max of 3 and min of 1 in the ip address?
I am trying to run a If Then Else statment using this format.string()
so I can filter the type of search string inputted so depending on the
type of format used in the search string, the data selects a cert display code.
I just need to figure out how to use the fomat.string() for an input box
that takes a string value. so maybe I should have the ip address be a number? and the hex a number and the pc name a string with 20 characters max? I was thinking this but I do not know how nor can I find anything on how to set up say this: (my pseudo code)
VB.NET:
If format.string({"###.###.###.###", txt_searchbox.text) then
goto displayIPAddress()
End If
If format.string({"##-##-##-##-##-##"}, txt_searchbox.text) then
goto displayMacID()
End If
If format.string("cccccccccccccccccccc", txt_searchbox.text) then
goto displayPCname()
End If
I know this is crued but I just dont know how to make the input format string work in vb.net and to find what I need on the NET is daunting..
Can you point me in the right direction..
thanks. All I need is to understand how to do the above code but real code
not my crap above..thanks
-itdaddy