Hi can any body help me on understand the Modular function and the sub string?
here is an exalple of a modular function and the sub string
because I want to make a Presonal Application. I need to put a telephone number,first name, last name, Address, Zipcode.
Can Any Body Help me thanks.
JB: I think i straightened it out, I also added the [ code] tags
here is an exalple of a modular function and the sub string
VB.NET:
Function LocationOfPeriod(ByVal Text As String) As Integer
Dim MaxSize As Integer = Text.Length ' get size for loop
Dim counter, Index As Integer ' used as a counter
For counter = 0 To MaxSize - 1 ' loop through the string
If (Text.Substring(counter, 1) = ".") Then 'check if the letter at location "counter" is a period, if so set index to this postion
Index = counter
End If
Next
Return = Index 'return the value of the index
End Function
because I want to make a Presonal Application. I need to put a telephone number,first name, last name, Address, Zipcode.
Can Any Body Help me thanks.
JB: I think i straightened it out, I also added the [ code] tags
Last edited by a moderator: