o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

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 mid$ to compare them letter by letter to have the right positions of differences?
Thanks in advance!!!

 

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


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 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


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.


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


Compare files -
Hello there, I want to compare files to find out if they are the same (except for the name of course). In my program I can specify a directory. Then I want to check whether there are any redundant files. My app works well with directories that contain less than 300 files. Once ab


How can I move\delete a file from a textbox list -
Hi all, Having a problem trying to figure this out. I have two text boxes. Text1 contains a list of file names I want to be left alone. (Generated from my code as "file.INF") Text2 contains a list of files from a user specified directory. Textboxes are not necess


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)


Compare two XML files -
Hi there! Does anyone know how to compare two xml files? what i wanna do is compare the two xml Files and then display the difference to the datagrid...thanks in advance.


Compare MDB -
I want to compare two Access 2000 database files. And find out what records have been changed. Is there a program to compare two files?


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 Two Word Files -
Hi All, I want to develop a VB6 application to compare two word files. I want to include option to - compare the content only. - compare the content and Formating also. I want you all to suggest me the best way to do it. Thanks in Advance.


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


Compare 2 files -
Hello, Perhaps a simple question but: How to compare 2 files?? I want to check if two files are completely the same (except the name of course). Those files can be pictures, word documents, WHATEVER ! I want something like a 'diff' under unix... Is this possible with VB?


Use VBScript to compare files -
I want to write a routine that will take two files (be they text or binary) and compare them to see if they are identical. I'd rather do that, than open the files and compare them line by line. Is there a way to calculate a hash value for a file using VBscript? Are there any examp


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


Compare two .bas files[Found a way] -
Does anyone know of a way to compare differences between two different .bas files? I have two different versions of a very long and convoluted bas module and would like to mark areas, or at the very least have them pointed out by some sort of "compare" program. I su


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


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!


Comparing two document files -
How do i compare two doc files to check whether their are identical or not. If not i want the location where the difference is. IS there any API which can compare two files? Thanks Kais


[B]How to Compare 2 DLL files versions[/B] -
Hi All, I am doing AutoUpdate program where I need to compare 2 DLL files version. Please let me know how to compare two DLL file version. Thanks, Mohan


easiest way to compare 2 lists -
what is the syntax for using the compare in vb... ie compare filelist1 to filelist2 and see what files one directory has that the other doesnt


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:


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


[2005] Compare Files -
Dear All, I can use Icompare collection to compare two files are modifeddate,file size and date created? Thanks In advance Dana


[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 ?


Compare word Documents -
Hello, Is it possible to compare two word files without using MS Word's inbuilt Compare & merge option? May be in VB way??? Could you please help me out on this. Thanks, Kanna.


compare contents of 2 files -
Hi, In order to help me with versioning control from a text file that I receive off the web, I was wondering if there was a way to compare the contents of say a text file named categories.txt and categoriesnew.txt. I thought about just comparing the size of the 2 files and if the


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


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 "


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


C++ source code to compare XML files like ExamXML XML differencing tool -
I’m working on a Linux project that includes identifying changes between XML files and I need a source code on C++ to compare XML fragments. I’m using differencing tool ExamXML from http://www.a7soft.com to compare and merge XML files but this is Windows application.


Compare form files -
I have an app used by several clients. Each client has a slightly different version, due to operational preferences. Is there a utility that can compare two form files and list only the differences. It would be very helpful during upgrades. Thanks for any replys


Comparing two files -
Thanks. I wasn't clear on my comparison. I want to compare the data of the two files that has the same comma dilimeters and get a report on all unmatched records. Field 1 and 2 are the same in each file. The other fields contained the data to compare. Should be the same, but may no


compare 2 datasets -
I have 2 datasets derived from 2 XML files and I want to compare these 2 datasets. I'm doing a readxml and loading the dataset. How can I now compare the datasets row by row. I just want a boolean value to see if its true or false. I dont want to do anything with the data. thanks


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 text files -
Has anyone written something that can compare two text files and output the differences, or know of freewhere I can download to do this?


Comparison between two folders -
I have two folders that I want to compare the contents to each other. These folders have sub folders in them. I want to compare all of the files from one folder to the files in the other folder based on the timestamp of the files and then display the files that are not a match. Can