hi.
anyone have an idea how to get the last # of degit the textbox
i mean:
if i have n the textbox the string. "c:\mysite\index.htm"
if i gev the #3 i wanna get "htm"
if i gev the #6 i wanna get "ex.htm"
anyone can help me?
Printable View
hi.
anyone have an idea how to get the last # of degit the textbox
i mean:
if i have n the textbox the string. "c:\mysite\index.htm"
if i gev the #3 i wanna get "htm"
if i gev the #6 i wanna get "ex.htm"
anyone can help me?
Will this help you...???:)Code:Private Sub Command1_Click()
Dim num As String
num = CInt(InputBox("Enter the length!!", "Length"))
MsgBox Right(Text1.Text, num)
End Sub
Or if you want to use a function, then simply use this code (a variation of the code above)
Code:Private Function GetLastBytes(ByRef Src As TextBox, ByRef ln As Integer) As String
GetLastBytes = Right(Src.Text,ln)
End Function
thanks work's will
If ur problem is solved, then mark the thread as resolved:)
how i mark the theard?
Click on "Thread tools" just above the first post in this thread, then "Mark thread resolved".