|
-
Jul 27th, 2006, 06:52 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Question Please!
I have Text Box Control called txtCount
VB Code:
txtCount.Text = "Users Count " & X & " Now"
it could be something like this
"Users Count 56 Now" or "Users Count 3 Now" ...etc
How can I make a short code that takes the Value X between "Users Count " & " Now".
Thanks
Last edited by Hack; Jul 27th, 2006 at 07:47 AM.
Reason: Added [RESOLVED] to thread title and green "resolved" checkmark
-
Jul 27th, 2006, 06:54 AM
#2
Lively Member
Re: Question Please!
Hi ASoufan, once again i'd love to help but i don't really know what you want to do? Do you want a piece of code to give X a value?
-
Jul 27th, 2006, 06:55 AM
#3
Frenzied Member
Re: Question Please!
could you elaborate more on what you want to do.
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Jul 27th, 2006, 06:56 AM
#4
Re: Question Please!
do you want to find out the value of x from the text box, after assigning the text to it...why dont you call the x if you have a variable...or use mid function
VB Code:
MsgBox Val(Mid(txtCount.Text,13))
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Jul 27th, 2006, 07:00 AM
#5
Lively Member
Re: Question Please!
ahhh, now i understand, you want to isolate the X value from the string located in txtCount. use one of ganeshmoorthy's methods.
-
Jul 27th, 2006, 07:12 AM
#6
Thread Starter
Addicted Member
Re: Question Please!
Thanks guys, I got the function that get a part of text from full text
VB Code:
Function GetTXT(FullTXT As String, StartTXT As String, EndTXT As String) As String
GetTXT = Mid(FullTXT, InStr(1, FullTXT, StartTXT) + Len(StartTXT), InStr(1, FullTXT, EndTXT) - InStr(1, FullTXT, StartTXT) - Len(StartTXT))
End Function
It will be like this
VB Code:
MsgBox GetTXT("Users Count 56 Now","Users Count "," Now"
This will apear 56 or any string a message Box.
*RESOLVED*
Thanks!
-
Jul 27th, 2006, 07:14 AM
#7
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Jul 27th, 2006, 07:46 AM
#8
Re: Question Please!
 Originally Posted by ASoufan
Thanks guys, I got the function that get a part of text from full text
*RESOLVED*
Thanks!
If you consider this resolved, would you please pull down the Thread Tools menu and click the Mark Thread Resolved menu item? That will let everyone know that you have your answer.
Thank you.
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
|