[RESOLVED] Loading a listbox
I want to load a listbox with data that is provided as a single string. The listbox should display a two column list with a 10character ID number as column 1 and a variable character length name as Column 2.
The string of data would appear as ";VNXXXXXXXXVendorName;VNXXXXXXXXVendorName;...;"
I suppose that I could turn the string into an array and work it like that (I have not yet tried to do that), but I thinking that it would be better if I could work the listbox with the data as it already exists.
I have been looking for a means to do this but have, so far, come up with Butkus. Can anyone provide an assist or reference for how this would be done?
Re: [RESOLVED] Loading a listbox
Quote:
I doubt that you'll find...
That is probably true. But then I am (was) an engineer, not a DBA or an application developer.
Re: [RESOLVED] Loading a listbox
If your aim is efficient storage of data then your original idea would seem great. Why should that be your aim though? Do you not have much storage space available? Efficient processing of data should generally be of greater concern, as should the most readable code possible. There's little elegance in your proposed solution on either of those counts. There are always multiple ways to skin a cat but some ways are undoubtedly better than others. Some ways make better use of the tools available than others as well. Given that a relational database is optimised for relations between data, it seems logical to make use of that. We'll make an application developer of you yet. ;)
FYI, I was almost an engineer (about 90% of a ChemEng degree) before switching to CompSci, so I can appreciate both perspectives. I actually did a half-credit subject on Fortran as part of engineering that got me interested in programming to begin with.
Re: [RESOLVED] Loading a listbox
Quote:
Why should efficient storage of data be your aim?
It is not my aim, although however much memory one has, it should be. The fact is, that accumulating a lot of unused/poorly used, redundant data can pose numerous problems with both your system, all of your associated processes, and even the accuracy of your data, while significantly reducing the efficiency of your system and its associated processes. The Oracle Enterprise system comes to mind as an excellent example of how bad this can be.
Quote:
I was almost a Chemical Engineer
That is great! That was my own area of past expertise. For me, I find that programming things is an interesting hobby. Programming is nothing but a (logic) math based language (actually, all language is logic based if one studies them a little).
For me the bottom line is that programming offers a rather cheap/sessile way to do interesting projects. I cannot afford to continue being an engineer without actually working for/with someone and all of the things one would do incurs a lot of expense. Not something attractive to a retired engineer on a fixed (but generous) income.
I think I will take a pass at becoming a developer. But thanks for the offer.
Re: [RESOLVED] Loading a listbox
Quote:
Originally Posted by
gwboolean
The fact is, that accumulating a lot of unused/poorly used, redundant data can pose numerous problems with both your system, all of your associated processes, and even the accuracy of your data, while significantly reducing the efficiency of your system and its associated processes.
Sure, but that's not what is being suggested.
Re: [RESOLVED] Loading a listbox
Quote:
Originally Posted by
jmcilhinney
Sure, but that's not what is being suggested.
That may not be what is suggested, but that is almost surely the outcome, unless one is very, very, very careful about how they setup and deal with this type of data.
The fact is that this approach is a potentially data integrity nightmare. I used to work in a regulated world under the FDA and I can see all sorts of issues around Part 11 doing this. Although I can also see how to minimize the issues.
There are many considerations that must be considered beyond the ease/efficiency of handling the data.