| | |
Comparing first & last letter of a string
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Mar 2009
Posts: 914
Reputation:
Solved Threads: 167
0
#2 Oct 25th, 2009
None Case Sensitive
For case sensitive remove the option compare text....
Good Luck
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Option Explicit Option Compare Text Private Sub Form_Load() Dim S As String S = "This is a test" If Left(S, 1) = Right(S, 1) Then MsgBox Left(S, 1) & " matches" End Sub
Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.
Thanks
Thanks
![]() |
Similar Threads
- Finding the first letter of each string in a list (Python)
- Input Letter instead of Number (C++)
- comparing string in another file (Python)
- Capitalize letter in string to output... Should be a pretty easy solution! (C)
- Code Snippet: Capitalize a letter of a string (PHP)
- remove a letter in a string (Python)
- How to count Uppercase Letter from a String (ASP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Ur Help Needed
- Next Thread: Help a Brazilian programmer urgent, please!
Views: 416 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column 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 listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





