| | |
=" =" "
![]() |
0
#2 25 Days Ago
for copy for paste in other textbox
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Clipboard.Clear Clipboard.SetText text1.SelText
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
text2.SelText = Clipboard.GetText()
I like sword. Attack or Defense.
•
•
Join Date: Jan 2008
Posts: 239
Reputation:
Solved Threads: 33
0
#3 25 Days Ago
First of all, var (variance takes up unneccesary space or memory. Declare your text as an integer. i.e.
The next question is? - Where do you want to copy the the temperature Integer? Into a database or just for calculation. There is different options to what you want to do...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
dim x as Integer x = Text1.Text
The next question is? - Where do you want to copy the the temperature Integer? Into a database or just for calculation. There is different options to what you want to do...
Please mark questions as answered when done.
Be the ONE!!!
Be the ONE!!!
•
•
Join Date: Aug 2009
Posts: 30
Reputation:
Solved Threads: 0
0
#4 24 Days Ago
i found some info and i am using the code:
to find and select the text.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Function find(first, second) pos = InStr(1, Text1.Text, first, vbTextCompare) pos2 = InStr(1, Text1.Text, second, vbTextCompare) start = pos + Len(first) length = pos2 - start Text1.SelStart = start Text1.SelLength = length - 2 End Function
to find and select the text.
•
•
Join Date: Jan 2008
Posts: 239
Reputation:
Solved Threads: 33
0
#5 24 Days Ago
Now I understand. You wanted to search a text box when certain criteria is passed. You can also do the same with the following -
Note that 'Sendmessage' generates errors in Vista....
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Option Explicit Private Declare Function SendMessage Lib "User32" _ Alias "SendMessageA" (byval _ hWnd as Long, _ byval wMsg as Integer, _ byval wParam as string, _ lParam as Any) as Long Const LB_FINDSTRING = &H18F Private Sub Form_Load() With List1 .Clear .AddItem "18.5" 'or whatever you would like to add, whether from a file or database... End With End Sub Private Sub Text1_Change() List1.ListIndex = SendMessage(List1.hWnd, LB_FINDSTRING, _ Text1, byval Text1.Text) End Sub
Note that 'Sendmessage' generates errors in Vista....
Please mark questions as answered when done.
Be the ONE!!!
Be the ONE!!!
![]() |
Similar Threads
- My "favorites" vanished, how do i retrieve them (Web Browsers)
- Problem installing/ghosting new hard drive (Storage)
- google "keyword" question (Search Engine Optimization)
- i = system ("cd c:\text"); :( (C)
- W32.Blaster.Worm - RPC vulnerability causes reboots in Windows NT, 2K, and XP. (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: SMS
- Next Thread: POLE Display Output
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





