I have a combobox on this testsite: sneleopard.dk/combobox.html
it should show all records containing the search string while typing.
But sometimes it only shows some of them, why?
1) type "spi" and it shows among others "spinat helbladet"
2) delete the search string and type "bla"
3) it should now among others show "spinat helbladet" again, but it
doesnt, why?
maybe its because that the function shows first records starting with
the search string, and thereafter those containing? 4 1255
On Sat, 03 Mar 2007 07:54:00 +0100, hygum <th*********@gm ail.comwrote:
I have a combobox on this testsite: sneleopard.dk/combobox.html
it should show all records containing the search string while typing.
But sometimes it only shows some of them, why?
1) type "spi" and it shows among others "spinat helbladet"
2) delete the search string and type "bla"
3) it should now among others show "spinat helbladet" again, but it
doesnt, why?
maybe its because that the function shows first records starting with
the search string, and thereafter those containing?
It's a problem with the commas. Try it with "baby" or "frisk": you won't
find "spinat, baby, frisk".
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
On 3 Mar., 08:27, OmegaJunior <omegajun...@sp amremove.home.n lwrote:
On Sat, 03 Mar 2007 07:54:00 +0100, hygum <thomashy...@gm ail.comwrote:
I have a combobox on this testsite: sneleopard.dk/combobox.html
it should show all records containing the search string while typing.
But sometimes it only shows some of them, why?
1) type "spi" and it shows among others "spinat helbladet"
2) delete the search string and type "bla"
3) it should now among others show "spinat helbladet" again, but it
doesnt, why?
maybe its because that the function shows first records starting with
the search string, and thereafter those containing?
It's a problem with the commas. Try it with "baby" or "frisk": you won't
find "spinat, baby, frisk".
--
Using Opera's revolutionary e-mail client:http://www.opera.com/mail/
yes I do. With baby or frisk i find that record. The commas are
escaped in the javascript array. But still it can be a comma
problem... I will try without
On Mar 3, 8:54 am, "hygum" <thomashy...@gm ail.comwrote:
I have a combobox on this testsite: sneleopard.dk/combobox.html
it should show all records containing the search string while typing.
But sometimes it only shows some of them, why?
1) type "spi" and it shows among others "spinat helbladet"
2) delete the search string and type "bla"
3) it should now among others show "spinat helbladet" again, but it
doesnt, why?
I changed your function, so that the array search is done once in one
loop only and it gives me none of the problems above. -
for(i = 0; i < functionListLength; i++)
-
{
-
if( ( functionlist[i].search(re1) >= 0 ) ||
-
( functionlist[i].search(re2) >= 0 ) )
-
{
-
selectObj[numShown] = new Option(functionlist[i],comboids[i]);
-
numShown++;
-
}
-
}
-
You will have to clean up the variables not used, like
"visteelementer ".
In my opinion you can leave out the first criteria (first search) as
the second criteria will find also those who starts with the search
string!
Best wishes,
John, Latvia
On 5 Mar., 11:17, "j.andersen " <j.andersen...@ gmail.comwrote:
On Mar 3, 8:54 am, "hygum" <thomashy...@gm ail.comwrote:
I have a combobox on this testsite: sneleopard.dk/combobox.html
it should show all records containing the search string while typing.
But sometimes it only shows some of them, why?
1) type "spi" and it shows among others "spinat helbladet"
2) delete the search string and type "bla"
3) it should now among others show "spinat helbladet" again, but it
doesnt, why?
I changed your function, so that the array search is done once in one
loop only and it gives me none of the problems above.
-
for(i = 0; i < functionListLength; i++)
-
{
-
if( ( functionlist[i].search(re1) >= 0 ) ||
-
( functionlist[i].search(re2) >= 0 ) )
-
{
-
selectObj[numShown] = new Option(functionlist[i],comboids[i]);
-
numShown++;
-
}}
-
You will have to clean up the variables not used, like
"visteelementer ".
In my opinion you can leave out the first criteria (first search) as
the second criteria will find also those who starts with the search
string!
Best wishes,
John, Latvia
i know the second search find the same as the first (but not the
reverse), but thats because i want the list to be first the records
that begins with the search string, and thereafter the records that
contains.
Thanks for your help This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jorge Godoy |
last post by:
Hi.
I have created an interface where I have a QDataBrowser and all of its
editing and navigating controls and one of the displayed controls is in a
QSpinBox.
I have the navigation from current to next and previous records working fine
if I only use the data browser controls. I also can recover the correct
record if I type in a valid code at the spin box.
|
by: maddman |
last post by:
I have an odd problem with my database, and was hoping someone could
point me at the problem.
We have an access database that is used by several people to input
data. Users have reported some of the records in their forms
(Datasheet view) are showing up as "#Deleted", though no one should be
deleting records from here. Further, the messages show up only on
certain users' screens.
Is this a result of corruption from having multiple...
|
by: Alpha |
last post by:
This is a Window based application. How do I get my combox listing to
display in sorted order by DataMember? I inserted a blank row to the dataset
table which is the datasrouce for the comboBox with valuemember wet to -1.
This is showing up at the bottom of the list. I want it to show at the top
of the listing. How can I do that?
Thanks, Alpha
|
by: Greg McKnight |
last post by:
This may be the second time this post is showing, I accidentally shut
down my browser.
Sorry if it is a repeat.
I am a newbie to VB.net, so please forgive me if these are simple
questions.
I'm using the Northwind DB to teach myself. I used the data form wizard
to create a form with a dataset containing the
'Orders' and 'Order Detail' tables. The 'Orders' fields are displayed
|
by: Bob |
last post by:
The scenario is that of the employees table wherein there's an EmployeeId
and a ReportsTo field in the same table. The combobox is one in a datagrid
view that lets you select an employee from the employees table to fill in
the reportsto field, but since a person can't report to himself. I'm
wondering how to exclude the EmployeeId of the selected record from the
dropdown list of the combox. Ideally I think it would be to apply a filter
to...
| |
by: Timbo |
last post by:
Hi there,
I’m not used to working in VB and I think this situation calls for excactly that. I use Access 97 SR-2.
My first table is a table containing all the Tickets I got. The field ”Ticket” is simply a ticket-number.
I’ve made a form in which I am to choose an existing Ticket and write a description for it pluss other things. The description to these Tickets are stored in another table called ”LogBook”. I then made a query on all of...
|
by: radink |
last post by:
Hey All,
I have a report that I would like to show a word on based on if a
field is checked in a form. For example. The form has a check box
called Fee. If that is checked, I want the word Paid to show up in the
report. If it's not checked, then I want it to not show.
Thanks for any help!
|
by: aaron5150 |
last post by:
OK so here goes.
I have created a table for my "employees details" including "employee number". I have also completed another table which shows orders by "employee number", details of order etc.
I created a query which shows each employee on its own line with a "total number of the orders taken" by the employee rather than a random list showing each individual order. so for example it shows:
Employee ID Total Orders
Employee 1 ...
|
by: Thomas Arthur Seidel |
last post by:
Hello to all,
I have a small or big problem with a customer data base, where during a change of
system we might have created duplicate records. This should be easy to find, you
might think, but, we are talking about roughly 10000 records or less in a total
volume of 1 MIO records or more.
I have considered a strategy: The station ID and a field with something like a
sequence number are supposed to be unique during that period. The...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |