How to compare multiple (part) strings -
Hi,
I have 2 listboxes and want to compare both and count in how many lines are identical strings. BUT .... I want to use part of the strings (same as with MID) and this part strings chance always.
For example: I want to compare at the begin the characters 1-5 then 2-6 then 3-7 and so on of the string.
Original string: "visualbasic"
Comparestring 1: "visua"
Comparestring 2: "isual"
Comparestring 3: "sualb"
... and so on
And this I want to compare always in a Loop with the other Listbox entries.
is there any fast way/function how to compare it or have I to write for this something by myself?
I need to find out that parts of a string in the left Listbox match partly in the right Listbox.
I was looking for pattern compare, but it seems that nothing like this exists in VB.
nice greetings
Franky from Bangkok
How to compare multiple (part) strings -
Hi,
I have 2 listboxes and want to compare both and count in how many lines are identical strings. BUT .... I want to use part of the strings (same as with MID) and this part strings chance always.
For example: I want to compare at the begin the characters 1-5 then 2-6 then 3-7 a
Multiple strings via winsock -
How can I send multiple strings with winsock was the question. It might not be very hard to type 'Winsock1.SenData' multiple times, but getting the strings to end up in different places isn't quite as easy (according to me). So what I want to know is: How can I make different strings w
complex string comparison -
Hi all,
I want to compare 2 strings of text (product description)
example:
string 1: Cup. knee 12mm x 15mm cap. 90degr.
string 2: VSH knee 12mm x 15mm 90 / cap.
these 2 strings represent the same product (different suppliers)
is there a way to compare the strings word by
Newbie questioon: String Comparison -
Ok, after looking on MSDN and doing some test of my own, I have no idea how to make this work.
Basically, I have 2 strings which being compared. Now my problem is that they are the string representation of integers. For example: the Number 8 as "8". Ok obvious i know.
Compare two strings or two files -
In my form I have two rich text boxes.In both of them I put two different text files(.txt or .rtf).I looking for some code to compare them, and to have the result as marked differences into the second rich text box.How I have to compare them-as strings or as files? And how I can use mi
Editing Data In as text -
Not really to advanced in VB programing but trying to write a program that will compare two long text strings.
Multiple lines.
How can I extract for instance data line by line in a textbox (or richtextbox) to compare against another line of data.
Thanks
Felix2000
Best Way Compare string to list of strings(RESOLVED) -
Trying to figure out the best way to approach this.
Basically I need to compare files(different each time) against a list of other strings to see if the file contains any of the strings(will be adding new ones to the list as I go on). I'll try to explain a bit more. For an exampl
How to compare two strings and integers -
Hi All,
I want to compare two strings /integer but I am not getting expected results
e.g
x = 5 , y = 5.00
x = y = Correct
-----------------------------------------------
x = "5" , y = "5.00"
x = y = incorrect
but
cint(x) = cint(y) = Corre
Compare texts strings in VB.NET from Access mdb -
Is there a way I can compare texts strings enter from a user at run time to an Access mdb field declared as memo? If there is a way, would anyone share it with me? The texts typed from a user at run time are from a text box compare to a SQL query from the Access mdb file. If that is no
Adding Multiple Lines to a Label Control -
I was wondering if anyone know if there is a way to get mulitple strings and variables to display in a label. I know how to concanate strings and variable on a single line within a Label control but I would like to be able to display or print out if you will multiple constant strings
sqlquery to compare a given date with datetime field in a table. -
hi,
how to compare a datetime field called date1 with date part alone.
i want to compare the date part of the column with date input to select the matching record.
show me the query. I want this as a stored procedure in sql server 2000 to access in my prg.
basic_string comparison -
Is there a way to compare strings that is case insensitive? I know I can compare them using stricmp, but is there an inbuilt method or technique?
Thanks in advance
HD
ADO SQL VB6 date compare dates are strings -
Stuck on this issue, VB6,ADO code, SQL, MS Access 2000.
Dates are stored in text field in mdb. I have no control over this part. what I need to do is compare dates for a report such as
Code:
rs.Open "SELECT * from WorkOrders WHERE DateEntered >= #" & ReportS
Finding the next and detecting repeat string -
Heres what im doing, Im searching a textbox for a specific string WITH different numbers attached(this part is no problem i can do this easily), there are multiple of them, what i want to do is find all of thoes strings in the textbox, but i dont want to do anything with the repeat str
Compare strings -
I have seen examples here in the forums, but nothing solid. What is the best why to make sure two (in my case three) strings are indentical?
Thanks!
How to compare 2 strings -
Hi!
I have a memory block where are many strings, but I cant compare them with a constant string!
Example:
"if" statement is using sizeof() and its not using strlen()
Is there some functions or do I need to make a for loop (which is slow) for checking the data?
Code:
Problem again (regarding loop): how to compare certain part between files -
i got 2 INI file (file1 and file2), i wish to compare the specific part of the file, below the compare part only true if file 1 and file2 have an identical line data. (mean line7(aaa=...) of file1 must same as line7(aaa=...) of file2)
if line7(aaa=...) but file2's line 7 = [DEF] ...
Accessing and working on .c, .h files from VB -
Hi all,
I need to find few strings in .c/.h files which are part of a VC++ workspace and replace those strings with my new strings. I've stored the "strings to be found in the files" in one column and "strings to be replaces in the files" in 2 adjacent columns
[2008] Compare one string to multiple/an array of other strings -
Hey Guys,
Does VB.NET have something where I can easily compare one string to a number of other strings?
For instance, right now I have something like this:
Code:
With Item
If _
.stringpart Like "* string one*" = Fal
How to compare one string to.....HELP!! -
Hello,
I'm trying to compare 2 strings(username, and password) to a textfie that I have loaded into my app, via richtextbox.
If there is a way to compare it without using the richtextbox that is cool. I have a textfile that has the usernames and accounts of my users in it. I get the
I just can't get these strings to compare and DSN!!! -
I have this code (designed to see if a DSN exists) and the strings never seem to be the same (even though they definately are). If someone has a better way to check if a DSN exists, please let me know.
Private Function DSNList(DSNName As String)
Dim dSource As Integer
[2005] compare strings -
I'm comparing 2 strings, they happen to be version numbers that have both numbers and letter(s) in the string, how can i tell if 123b is newer than 123a ?
Filter or compare text -
I'm trying to take the contents of a part number field and be sure it contains only the characters 0-9,A-Z. Aside from doing an Instr one character at a time thru all characters in the part number field, is there a way to compare that field vs the allowed characters? The part number fi
sorting comma delimited strings -
Ok
If I have 2 strings :
strA = "1,2,3" and strB = "3,2,1"
and I compare them they obviously wont equal eachother.
However in my logig because they both contain the same 3 numbers I want to be able to say well yes man they do equal eachother.
This wo
Comparing texts with missing or extra letters -
Hey all,
my problem is when I start to compare two texts with different lenght.
The point is that the texts are loaded in two RTB and I don't know how to compare them.
I found that I have to parse the strings and then to compare word by word,but it's hard for me because (as default)
Alphanumerical sorting of strings -
Hi all.
As you probably know, when you compare strings in VB, "2" is greater than "19".
Does anyone know of a function or a routine that would sort alphanumerically without this glitch?
Ex: if I compare "PB101" with "PB23", I want "
Format string to date format and .... -
Question one,
If a user types 4/5/03 into a textbox, how do I format this to this date style - 04/05/03?
They may type it as I want, or they may type it like the above, so I need to make sure before I do part two, below, that it is in the correct format.
Part two,
How can I com
Comparing strings. -
Hi, need help on comparing strings. Is there any way to compare two strings such that String 1 can remove data in String 1 that already existed in String 2?
Compare two strings and get the differance -
Hi,
I have 2 strings
string1 = "abcdefgh"
string2 = "abcdefghijklm"
I want to get the difference of the two strings .....
like getDiff(str2,str1) = "ijklm"
and where the diffrance is
like
getDiffStart(str2,str1) = 8 (where the la
string parsing with chars -
This is the kind of string which the server sends me: e.g
:SSP4|3s#~*6%**$XÔsìŠ?+n
Code:
char string[] = ":SSP4|3s#~*6%**$XÔsìŠ?+n";
The part in bold is the part i need to grab, and it can vary in length
in these strings i know that #~*6%**$ will always be
SQL Server Array -
I know there is no array type within SQL Server however I would like to pass an array of strings (strings can be any length and there can be any number of them) to a stored procedure which would then select some records according to the multiple strings passed.
Is there anyway of do
Comparing 2 strings -
I have 2 strings containing elements. Iwant to compare them and remove any items from the first one that are already in the second string. I then want to add the items of the first string into a listview. Can anyone please give me the code for this?
Compare each string with strings in array -
I need to search an array of strings and compare each string with a given string.
I count how many characters in the string that equals the string of the array.
In the beginning the array is empty. Depending on the result of the compare the array grows. That means that the array
String compare -
I have two strings to compare ,though they looks the same , the return boolean is false....
lstrString = (xlsheet.Cells(2, 1).Value) ' retrieve from excel which is empty
lstrString1 = ""
MsgBox IsNull(lstrString = lstrString1)
What happen?
Regards
Goh
MSComm1 Help -
I'm trying to read in strings of hex values, 12 bytes in total (ex. 01 09 0C 96 38 F0 07 00 00 00 00 5C). I want to be able to take these strings, ignore the first three bytes (they're always the same), and compare them so that they can be used in IF statements (ie IF "hex string&
Compare String in FlexGrid Cell to Excell Sheet Cell -
I have a string in a cell of a flexgrid that I want to compare to a string in an excel sheet cell
I tried doing this:
MsFlexGrid1.Col=0
MsFlexGrid1.Row=0
If MSFlexGrid1.Text = XLSheet3.Cells(3, 1) Then
'Do the stuff I want to do
End If
But it gives me a runtime error a
HELP: Compare Strings and display the difference -
Can anyone help me? I'm new to programming and i need to create a "simple" program that can compare lines of texts and display the difference (if there is any). Thanks in advance.
How i can compare 2 strings -
Hi
I have Richtextbox and its contain some text and
listbox reading from the database some keyword
so how i can compare the Richtextbox contains with
the listbox keyword items and if the result true then
copy the keyword to textbox
Thanks in advance
Writing the results of a StrComp to a text file -
I'm trying to write this program and i need to compare all the strings in 2 text files to see if any match. If they do, i have to get them to show up in a list box and written to their own text file (the matching strings). Sounds easy enough but i cannot figure it out. Any help would b
combining indvidual strings to one large string -
im trying to take multiple strings and combine it to one big string
can someone help??