CoachBarker
Well-known member
- Joined
- Jul 26, 2007
- Messages
- 133
- Programming Experience
- 1-3
Is there a way to make the second parameter in Remove(10,3) be a variable number.
What I am doing is comparing the PPP Adapter IP Address to a constant IP Address that is always going to be 10 characters, but the string I am removing from can have 3,4, or 5 characters.
I have:
Thanks
CoachBarker
What I am doing is comparing the PPP Adapter IP Address to a constant IP Address that is always going to be 10 characters, but the string I am removing from can have 3,4, or 5 characters.
I have:
VB.NET:
Dim pppIPAddresses As String = "170.170.70"
If pppIPAddresses = (cInterface.GetIPProperties.UnicastAddresses.Item(0).Address.ToString().Remove(10, 3)) Then
' displays the IP Address for verification
TextBox2.Text = (cInterface.GetIPProperties.UnicastAddresses.Item(0).Address.ToString().Remove(10, 3))
Return True
End If
End If
Thanks
CoachBarker