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.
So I want to sort an array I have and unfortunately I am locked into havin the elements as Strings. So when I go to sort the array from these integer strings... it doesn't compare properly:
i.e. "45" < "5"
StrComp appears to just allow you to compare with binary or text... but both of these options give the same result in this instance.
So is there an easy (maybe built in way) to convert these integer strings to integers and THEN compare them?? Maybe someone knows an even easier way.
Thanx in advance,
cLocKwOrk
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.
Newbie Needs Help - Comparison with Time -
I am trying to figure out how to do comparisons with Time. I have been studying VB for about four weeks now and am trying to solve an exercise in one of my books but I can't get any comparison operators to work with time.
When the time is assigned to my Date Time Picker Control I hav
Resource Manager - Case Sensitive String Comparison (Resolved) -
Hi there,
I havent posted on this site for quite a while... sorry...
I have a question, is it quicker to perform a case sensitive string comparison rather than a non cases sensitive comparison. I have a resource file that contains quite a few strings, could i optimize access spe
Best comparison algorith -
Hello,
Can anyone suggest an algorithm to read a disk file and compare each record to another string?
I was thinking of reading the disk file into a new Collection, then doing a keyed comparison to the other String. Does this sound flakey guys?
My concern is to use a routine t
Listview Sort -
Hi all,
I'm trying to sort a list view control, but I don't want it sorted using string comparison.
I know that a callback function can be used for comparison, but I don't seem to be able to make it work.
Some code would be very helpfull, thanks a lot.
It says newbie i dont like being a newbie -
LOL hi all.
By my name and the amount of posts it says i'm a newbie. How to i get not to be a newbie lol i hate being a newbie (even though i am a newbie to this forum and vb) but still i want to not be one :P
I'm Back! - Need Help w/ String Comparison -
Hey Everybody!
Its been a long time since ive been at these forums, but the time of return has finally arrived. I just started doing C++ very recently (in fact, about 4.5 days ago) and I was looking to do string comparison as part of a little beginner project.
My question i
A buncha newbie questions -
Hi, I am a newbie at C++, and kind of a newbie at C, so I am gonna ask some real simple questions now........
What do I need to include so that I can use string type? like this:
string TempString;
What do I need to include to read and write to a basic text file?
Any links with
Need to know a shortcut for string comparison -
I have an array of string for e.g. strarr={"A1", "B1", "C1", "D1" )
I want to match a string variable from another similar string array with strarr.
In order to minimize the processing time I wanted to do it as follows instead of a for loop.:
comparison between ASP and JAVA servlet techonlogy -
Hello All,
Can you give me the comparison between ASP and JAVA servlet techonlogy , i 'm preparing for a presentation i have to describe the diffrence between ASP and JAVA so anybody who knows the above please tell me the same
comparison based on technology , speed, performance
[2005] Declare < > (less/greater than) -
Hi!
How do i declare a less than or greater operator? (if thats the correct wording)
For example:
Code:
Private Sub Compare_Values()
Dim Comparison as _____??
Comparison = <
'// Comparison operator will be a variable set by the user input
'// it will either be le
VB6 -- Find all differences between two strings/files (FAST). -
Just a module that I cooked up for doing string/file comparison. Pass it two strings, and it returns a comma delimited string of character positions that are unmatched in the other string. So, to get all changes (insertions and deletions) it would need to be called twice. For exampl
Learning and Comparing various Hardware -
Just recently, I've been asked to become computer hardware advisor. I, being a software consultant for most of my life, have virtually no knowledge in computer hardware. Is there any site that compares various brands of printers, scanners, multifunction machines, etc. I'm more concered
Newbie Question. -
What is the difference between Java and C/C++.
I know a Little C. Is Java going to be the same as C. Reason why im asking is because Im going to be taking a Java Class soon and If I learn Java well, will I easily be able to finish up learning C/C++? What is the comparison?
Thank
which is greater -
hi all ,
i want to perform comparison between two variable and find out which is greater without using comparison operator.
give me suitable answer,
regards,
abhishek mishra
XML comparison -
Hi,
I have two XML files needed to compare to indicate whether they are same. The comparison focuses on the Data inside the two xml files. the tag sequence could be different.
Thanks for help
Robert
image comparison algorithm -
does anyone know of any image comparison algorithms that can compare two black + white images?
-C
Excel cell comparison with listbox value -
Hi there, another simple one from Simple Si...
I have a list box lstInverterModel whose items are a list of Excel cells with a string like "Trace, SW2024E, 2000" in them.
I need to do an IF comparison of the value of lstInverterModel.Value with the cells where the list
Option Compare Database -
I want my database to by default use binary comparison, not text comparison. Anybody know how to do that?
More comparison -
Hi again
Now it's a different type of comparison:
A B C D E F
A B C
I want to get the highest letter in cell A1, that'll say I want the value of D2. But it has to get the value in E2 if the letter D is there and in B2 the letter A.
I've tried with some i
String cast to double -
I had a class with a public integer member in it. At one point, I had a line such as this:
If class.theinteger = 0 then
However, I realized that the field couldn't simply be an integer, so I changed it to a string without altering the above line of code. Naturally, that line of
Date and Time comparison -
Guys,
Heres what i want to do. I have a logging program that records the date and time a process was started and also logs the date and time of when it completed. What i want to do is compare these values to get an elapsed time for the process. Because the logging program writes
Simple bit comparison routine HELP! -
Could anyone possibly suggest a simple routine / procedure that would take two files and do a complete comparison on a bit to bit basis?
I am VERY rusty with VB, so the simpler the better please!
Many thanks.
Ben.
Help for a C++ newbie -
Hello all. Well, I spend most of my day sitting around answering questions in the VB forum... but now I want something new so I came here. Can someone please tell me the best place to go for a newbie (C++ newbie... not all around newbie ) to learn C++. If it matters any to the learning
how to do time comparison in VB -
i have a problem in time comparison.
i want to compare system time with given fixed time & want to get result in hh:mm:ss format.
plz help..............
Mid or Mid$ -
I am don't a whole bunch of string comparison (for making a crossword)... should I use mid or mid$ ???
Price Comparison -
Hi, there.
I have a page that show price and productid, also checkbox to choose to compare. how can i send parameter to another php page as array?
any better way?
any one has any example of price comparison (PHP) ?
thanks for advance
MSChart Features... -
can anyone listm e what mschart can do and the type of charts that it can produce? i know there are so many third party component that far more better than mschart, even i use non-vb chart component in my project. but this is just for my own comparison,i'm doing charting tools comparis
Master's i want to do Comparison, but how -
Hi
i m newbie, may be i m going to ask a stupid question to you all but i really need it and i want to solve my problem (plz dont be laugh on me )
i have two files.txt which i attached here, these files are consist on many fields like this format: [1], [2], [3]. . .[308]. . . a
Connecting to Visual Foxpro tables -
I'm a newbie to VB .net so please bear with me. I need to write a simple program in vb .net that will import from numerous visual foxpro tables into a new table for later use (comparison using SQL). How can I do that in vb .net? How do I make the connection to these visual foxpro table
Login Form using an ACCDB File -
Sorry if I missed this in my search, but I am having trouble with this for my course. I want to create a login form the will lookup the entry for comparison in an access 2007 db. My Current DB has 4 tables. I was able to look up how to establish the connection, but I am unable to lo
what is the syntax for string comparison -
hi,
I have a datareader that reads all my records then I want to filter only for cetain values
this is what I have but I get " End of statement expected"
---------------------------------
dim ids as string
ids = "1,2,5,9,8,54,52,14,1"
If dtrReport("ID&q
confused...integer compared to pointer -
Hi,
I thought i'd have a play around in C++. I'm a complete newbie (in C++ not programming). I'm trying to make a simple calculator to get a grasp of the syntax. (i'm used to python and VB).
What trying to do is declare the functions with prototype functions up the top. Get from
Code comparison software -
Can anyone recommend any code comparison software (commercial or non-commercial)?
Features should include:
Showing of New & Deleted Lines
Modified areas in code
New files added would be a bonus
The standard stuff...
Thanks.
VB.NET comparison with Java -
With VB.NET offering so much new facilities like inheritence, structured error handling, polymorphism, java style syntax, easy database connectivity and much more.... what do you think about the comparison VB.NET vs. Java?
Do you think VB.NET will give Java programmers a run for the
How best to handle a search for character in string -
Hello gang,
I still consider myself a newbie and am having a hard time trying to figure out which is the best way to search a string to see whether it may or may not have a certain character in it.
Basically I have a combobox that contains a list of names. The format for the lis
(SOLVED) 2 DB comparison... -
Hi... I have a simple question but I'm kind of clueless on how to do it (And I couldnt' find any information here relating to that).
There is a way of make a full comparison of a table between two DB in one Query?... (The 2 DB are the "same" but because they are in di
Java vs C# code-for-code comparison -
Interesting article, although the comparison was done with Beta1 .NET
http://www.extremetech.com/article/0...16&ap=1,00.asp
C# vs Java code-for-code comparison -
Interesting article, although comparison was done with .NET Beta1.
http://www.extremetech.com/article/0...16&ap=1,00.asp
newbie vb question -
Hey I have kind of a newbie question, I'm trying to make a little joke application for my friend, and untill I can go to the store and pick up a VB book can you guys help me out?
I got a Form, with one button and on textbox. You can't type in the text box.
what i'm trying to do i