473,473 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Text Box to List Box

Every month I get a huge list of product codes I need to track. I have
written a very detailed script to perform this task.

The problem is, I copied someone else's form because I was in a rush.
I have yet to sit down to tweak this, but I'm hoping I can use a
bandaid rather than re-write the process.

The form I use allows you to enter (or cut-and-paste) one product code
at a time into a combo box. You press a button and the contents empty
into a list box. You can do this however many times you need to, with
the list box adding a new record each time. My script reads the
listbox and works its magic, looping through each value.

This is fine and all, but I'd really love to be able to cut-and-paste
the original list into a text box, press a button and have that list
parse out into the list box. I'm feeling a little fried at the moment,
anyone got any code lying around that can perform this task?

Aug 23 '06 #1
2 2142
rkc
ManningFan wrote:
Every month I get a huge list of product codes I need to track. I have
written a very detailed script to perform this task.

The problem is, I copied someone else's form because I was in a rush.
I have yet to sit down to tweak this, but I'm hoping I can use a
bandaid rather than re-write the process.

The form I use allows you to enter (or cut-and-paste) one product code
at a time into a combo box. You press a button and the contents empty
into a list box. You can do this however many times you need to, with
the list box adding a new record each time. My script reads the
listbox and works its magic, looping through each value.

This is fine and all, but I'd really love to be able to cut-and-paste
the original list into a text box, press a button and have that list
parse out into the list box. I'm feeling a little fried at the moment,
anyone got any code lying around that can perform this task?
Why don't you just work your magic and write some
code that reads the list you receive. Skip the other
guy's code that uses the form, listbox and whatever
else you don't understand.

Aug 23 '06 #2
I ended up doing it anyway. Pain in the butt because I had to strip
carriage returns and line feeds.

rkc wrote:
ManningFan wrote:
Every month I get a huge list of product codes I need to track. I have
written a very detailed script to perform this task.

The problem is, I copied someone else's form because I was in a rush.
I have yet to sit down to tweak this, but I'm hoping I can use a
bandaid rather than re-write the process.

The form I use allows you to enter (or cut-and-paste) one product code
at a time into a combo box. You press a button and the contents empty
into a list box. You can do this however many times you need to, with
the list box adding a new record each time. My script reads the
listbox and works its magic, looping through each value.

This is fine and all, but I'd really love to be able to cut-and-paste
the original list into a text box, press a button and have that list
parse out into the list box. I'm feeling a little fried at the moment,
anyone got any code lying around that can perform this task?

Why don't you just work your magic and write some
code that reads the list you receive. Skip the other
guy's code that uses the form, listbox and whatever
else you don't understand.
Aug 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Richard Hollenbeck | last post by:
To prevent future apostrophe bugs and errors, isn't it just simpler to forbid an apostrophe from being entered into a text field? For example, couldn't "Alice's Restaurant" be changed to "Alices...
1
by: bbcdancer | last post by:
Is it possible to restrict the length of a text box in MS Access using VBA on condition to what is selected in a list combo box. Scenario: 1. I have a list combo box containing: AA BBB...
11
by: Schraalhans Keukenmeester | last post by:
I have tried to collapse a long part of a text on my weblog using the following construct: <style> div.expand { display : none; } div.expand:hover (display : inline; } div.expand em {display :...
0
by: JosAH | last post by:
Greetings, Introduction Last week I started thinking about a text processing facility. I already found a substantial amount of text: a King James version of the bible. I'm going to use that...
0
by: JosAH | last post by:
Greetings, Introduction Before we start designing and implementing our text builder class(es), I'd like to mention a reply by Prometheuzz: he had a Dutch version of the entire bible ...
0
by: JosAH | last post by:
Greetings, Introduction Last week I was a bit too busy to cook up this part of the article series; sorry for that. This article part wraps up the Text Processing article series. The ...
0
by: JosAH | last post by:
Greetings, welcome back; above we discussed the peripherals of the Library class: loading and saving such an instantiation of it, the BookMark interface and then some. This part of the article...
7
by: Eric Wertman | last post by:
I have a set of files with this kind of content (it's dumped from WebSphere): ]
0
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.