Hello everyone,
I'm creating a program for a courier service that takes info from a database to make a 2d array with the necessary info, then puts that on to an excel spreadsheet per delivery.
I have already finished coding that part and it works like a charm. What I would like to do is to have the user be able to rearrange the items on the screen in the program window and then have that order rearrange the 2d array.
How can I put some info on the screen and have the user rearrange it in the order that they want, and then get the order that they put it in?
2 1285
Hello everyone,
I'm creating a program for a courier service that takes info from a database to make a 2d array with the necessary info, then puts that on to an excel spreadsheet per delivery.
I have already finished coding that part and it works like a charm. What I would like to do is to have the user be able to rearrange the items on the screen in the program window and then have that order rearrange the 2d array.
How can I put some info on the screen and have the user rearrange it in the order that they want, and then get the order that they put it in?
It sounds like you could create 2 list boxes. One listbox could contain all of your items and the second listbox could be used so that the user could move items from ListBox1 to ListBox2 in any order that they want. Give this a try and let us know if this will work for you.
Nathan
It sounds like you could create 2 list boxes. One listbox could contain all of your items and the second listbox could be used so that the user could move items from ListBox1 to ListBox2 in any order that they want. Give this a try and let us know if this will work for you.
Nathan
What I ended up doing is creating a listbox, and a move up and move down button. When the person clicks the move up button it inserts the item higher up in the list, and changes the array at the same time. It works great, so thank you.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Brian |
last post by:
I'm diddlying with a script, and found some behavior I don't understand.
Take this snippet:
for ($i = 0; $i <= count($m); $i++) {
array_shift($m);
reset($m);
}
|
by: Stormkid |
last post by:
Hi Group I'm trying to figure out a way that I can take two (two
dimensional) arrays and avShed and shed, and subtract the matching elements
in shed from avShed I've pasted the arrays blow from a print_r cmd any
suggestions would be great. Thanks much Todd
//avShed array
Array ( => Array ( => 1 => 08:00 ) => Array
( => 1 => 08:05 ) => Array ( => 1
=> 08:10 ) => Array ( => 1 => 08:15 )
=> Array ( => 1 => 08:20 ) => Array...
|
by: lawrence |
last post by:
I wanted to test xml_parse_into_struct() so I took the example off of
www.php.net and put this code up on a site:
<?php
$simple = <<<END
<item>
|
by: vcardillo |
last post by:
Hello all,
Okay, I am having some troubles. What I am doing here is dealing with
an employee hierarchy that is stored in an array. It looks like this:
$employees = array( "user_id" => array( "name", "title",
"reports to user id", "start date in the format: mm/dd/yyyy" )
);
How can I display this hierarchy in simple nested <li> tags in the most
|
by: Daniel Skinner |
last post by:
If I have the following text
var = '1,2,3,4'
and I want to use the comma as a field delimeter and rearrange the
fields to read
'1,3,2,4'
How would I accomplish this in python?
| |
by: João Santa Bárbara |
last post by:
Hi all, anyone knows a property in the panel to rearrange all the controls
inside it ???
or a external component ?
thks
JSB
PS: i want to put all my components inside a panel and when i resize the
panel a need to rearrange all of them.
|
by: tommazzo |
last post by:
I'm currently writing a photo album sotware in C#.
I'm using a ListView component to diaplay thumbnail previews of the photos
and want to give the user the possibility to rearrange the photos via a
drag&drop operation. The problem is that it only appears to be possible to
rearrange items in a ListView if its view property is not set to
View.LargeIcons (which is the one I need to diaplay the thumbs). If I
rearrage the items without changing...
|
by: hazz |
last post by:
is there a way to have a re-arrangeable list with an asp.net control ?
I would like to have a list of database table column values in an ordered
list initially loaded by their column order in the table
HOWEVER
have the ability to use an arrow or some mechanism to rearrange the order of
the columns so that when a report is created, the columns will be in that
new order.
|
by: =?Utf-8?B?S2F5xLFoYW4=?= |
last post by:
i have a datagridview on my Form. When i maximize form ,datagridview remains
in its initial size. i want it rearrage itself with parent form. is it
possible to solve on v.studio design mode without writing extra code(using
events).
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |