|
-
Sep 28th, 2008, 07:07 AM
#1
Thread Starter
Addicted Member
TextBox
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?
-
Sep 28th, 2008, 07:19 AM
#2
Re: TextBox
Code:
Private Sub Command1_Click()
Dim num As String
num = CInt(InputBox("Enter the length!!", "Length"))
MsgBox Right(Text1.Text, num)
End Sub
Will this help you...???
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Sep 28th, 2008, 10:18 AM
#3
Hyperactive Member
Re: TextBox
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
-
Sep 28th, 2008, 02:05 PM
#4
Thread Starter
Addicted Member
-
Sep 28th, 2008, 08:53 PM
#5
Re: TextBox
If ur problem is solved, then mark the thread as resolved
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Nov 13th, 2008, 07:46 AM
#6
Thread Starter
Addicted Member
-
Nov 13th, 2008, 10:13 AM
#7
Re: TextBox
Click on "Thread tools" just above the first post in this thread, then "Mark thread resolved".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|