VB.NET: Using String to compare with the Combo Box... -
Hi...
Say i have this string call "data" in Form1, this string contains number "5" value....
how do i pass this string to the Form2 and compare with the combo box items...
The combo box DropDownStyle is set to DropDownList...
which means when i pass, the SelectedIndex must be subtract or add by 1 to get the correct items to display...
The Combobox items contain:
One, Two, Three, Four and Five...
How to i actually pass this string to Form2 and Form2 will compare the number 5 with the items and display Five instead in the combo box correctly..
Thanks
VB.NET: Using String to compare with the Combo Box... -
Hi...
Say i have this string call "data" in Form1, this string contains number "5" value....
how do i pass this string to the Form2 and compare with the combo box items...
The combo box DropDownStyle is set to DropDownList...
which means when i pass, the
Regarding Combo Box -
I have 2 questions regarding ComboBox,
1, How can I prevent user to enter any data in the combo box.
2, How can I compare a combo.text value with it's list.
Thanks
Exchanging between forms -
Hi,
I have three forms in a project, first form has a combo box (for date) & command button. Now what I want is that when a user selects item from combo box, & then on command button the combotext should be stored & then i compare it in second form & when again the u
[resolved]case-insensitive string compare -
Quickie - just looking for an existing function to compare example and eXamLe which will return true, without having to overload string.compare functions.
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
Compare input and list of CmbBox -
I would like to compare only the input section of the combobox with the field in the database to check for duplications
if cbobox.????? = rs ("data") then
msgbox " You Have a Duplication"
else: Resume
end if
If i use text in the ????? section, it compares t
simple combo problem -
If I have added a ID in a combo box and a string to show the data...
How do I assign the ID back to the combo box to show the string?
For instance:
1 Customer1
2 Customer2
3 Customer3
Now I load this form and I have the ID 2...
How do I set the combo box to this
compare string regardless of upper or lower case (Resolved) -
Hi,
I have got to compare a string with another string. How do I compare both string irregardless of case sensitve. Below are a few examples
star = Star
Star =star
matching should be done based on case insensitive.
combo boxes, -
i am using VBA DAO and i have a combo box which contains two values, one of them is 1989 and the ther one is 1990. by passing each year, i want it the value inside it increament as well, for example, by next year, i want this combo box to contain only 1990 and 1991, basically 1989 vani
Combo Box Help in VB6 -
I'm having issues with a combo boxes change event. I'm using a Case since i'm going to be having about 500 choices in said combo box. Now i understand how to make the Case work when it is using numbers Ex. Case 1 case 2 etc. But what do i need to do to make it do the same thing with th
When Displaying how to increse the lenght of Combo Box -
I have Combo Box. I need to display the the Full value of the string in Combo Box with out increasing the Combo Box Size. Pl Help
compare a item in a collection -
I want to compare a string item in a collection with another string variable. I use collection.items.contains(string_var) to compare if the string_var is in the collection. But i need to compare case insensitive !! How can i do this ?
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
no doublicates in external app combo -
Hi
my thinking is to subclass the combo and wait for CB_addString
i have look over MSDN and it states that lparam='Pointer to the null-terminated string to be added'. My question is how can i get the string out of that pointer so i can use CB_FINDSTRINGEXACT AND search the combo?
Case sensitivity -
Does anyone know if SQL Server is case sensitive? I ask this because when I perform comparisons between string variables and fields in ADODB Recordsets case does not seem to matter. For example, if I compare hello and HELLO, they are considered the same string. However, my application
Parsing a string.. -
Hello,
I have textbox in which I am typing. In the textbox_change() event I am passing the contents of the textbox to a function. For example if I type a "D" then I pass that as my string. When I type "A" then "DA" is passed...so on and so forth. In the
Mutiple Combo box problem -
Hi,
I have combo boxes problem, I am using access DB with a table "Product" I am using adodc and datacombo controls to connect to access with a udl connection string.
Currently, I have 2 combo box on a form , I need to display data from the same table from access. I am t
Combo Box selection based on Database field. -
Hello all.
I am in need of assistance.
I have a combo box with two entrys. Available and Away.
I have a database that stores those entrys as strings.
I wish to make the combo box on form load display the current data in the database by showing the proper item. the choice must m
Option Compare Text at Runtime -
By inserting option compare text, str comparisons become non case sensitive.
I need to know how at runtime I can switch between binary and string comparisons?
I can do it the messy way by optionally running a ucase or lcase statement to both string to be compared, however this be
Values in databound combo box -
Firstly I cannot remember being so stressed in learning any new language. VB 2005 sux.
I'm just trying to iterate through a databound combo box and test if the items match a string, no big deal.
Except if it's in VB 2005. The combo box has every other ****ing method to waste your
Maximum characters in a combo box -
I m using VB 6.
I placed a combo box on my form.
I started entering charcters in combo, i could not add more than 256 characters.
i want to increase this limit to 2048.
If i use additem to add a string to the combo it adds upto 1024 characters.
But manually i can not add mo
Combo Box search and destroy... -
How do i search a combo box for a STRING and if its found destroy(erase) the string and add the new one. BASICALLy how do i replace a string in a combo box with another the exact same one ?
Combo Box gets cleared -
I have a simple drop down combo box. When I choose a value in it, I extract part of that string to store back as the TEXT property for the box so that on exit, that string is the new value.
This works perfectly well under NT. For some reason I can't fathom, the combo box gets clea
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
Combo Box Value to Database -
Hi
I have a combo box on a form containing about 10 items. Each item is a string of text. eg. Small, Medium, Large.
I would like whatever value is selected to be inserted into a DB.
Is it better to simply insert the string of text the user selects, or convert that string of tex
help with DateTime.Compare -
hi! can anybody please help me. Why is it when i try to compare two the same dates I was not getting the right return value of Datetime.Compare which 0. I dont know if the problem is in my code or is in the Datetime.Compare method. by the way, i attched a screenshot to give you more id
How to read the value of an excel combo box from VB -
I can read 'regular' cell values from Excel into a VB program (either thru a recordset or as an Excel Object). But the cell value for a combo box reads into VB from Excel as an empty string even though there is clearly a text string visible in the box. How can I get the actual string
combo boxes restricted by combo boxes -
I have a form where I have two combo boxes and i want to restrict the second combo box based on what was put in the first combo box. I've seen about 5 different websites that explain step by step how to do it, and im really really close, but don't quite have it and i hope someone can
About Comparing String -
When I comparing string for match or unmatch, how do I know where/ it's unmatch
for example when I compare "ABDD" and "ABCD" the function will reply character number 3 is unmatch
I have to compare about 100.000 characters, so compare each character isn't a good id
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
Using Split Function With No Delimiters -
okay i know how to use and implement the split function but i'm having problems example if i have a string DYEFGYE , how can i split each letter out of the sentence then add to a combo box say D first in combo then Y in the combo and goes down from there is it possible to do that witho
Combo text update -
OS Win98
Compiler: VC6++
Subject: Combo boxes
Trying to insert/add a string a combo box, but failing. I don't get an error but the string isn't added. Pointers?
Code:
case WM_COMMAND:
switch(wParam){
case BS_PUSHBUTTON:
if (SendMessage(hCombo,CB_ADDSTR
Selecting an item in a combo box -
I have a combo box ( style = vbComboDrop-DownList) which displays a list of countries.
My problem is given a particular country name (string) how do I select that item in the combo without having to iterate through each item of the combo.
For example , so far what I have been doi
Combo Fill In -
Hmmm... the closest thing to a combo box doing that (that i know of) is setting the style property of the combo box to 2
when u type in the combo box it will go the the corrosponding first letter of the words in the combo box
Combo Box Woes -
OK,
If you have a combo box that is populated via a table in an Access DB and you want to select something from that combo bo xna dhave it populate another combo box with information from the same DB but based on the criteria that you have selected in the first combo box, how would
any string compare functions in sql server -
Hi all...
There's this StrComp function in Access but anyone knows if there is a similar string compare function present in sql server?? What's the command if there really is?
Thanx in advance.
ComboBoxes with Unique Values -
Hey, I have an array of 6 combo boxes. I need to ensure that user cannot enter any duplicate values into the combos. For instance, if the combo boxes have the values "string 1" ; "string 2" ; and "string 3" in them, if the user selects "string 1&quo
compare a string -
I have a string value and I want to compare it with some words.
What I want to do that first program read the string value and if it contain "abc" (without quotes) in whole string then it call x function but if it contain "xyz" call y function.
Basicaly i want
Option Compare -
Can anyone give me some insight as to the benefit of using option compare.. i pretty much know what it does.. and that it is compare binary by default... but when should you use option compare text instead?
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