12-10-2006 09:30 AM
12-10-2006 10:09 AM
You are looking for an array of clusters.
Ben
12-12-2006 07:25 AM
Hi Ben --
I think perhaps that I wasn't clear in my description.
As I pointed out, my data is organized naturally as an Array of Clusters. More descriptively, my data looks like spreadsheet data; some text, some numbers. I need to add rows and columns dynamically. I need to be able to resize column widths dynamically... and while the program is executing.
The Table Control does all of this. The intuitive way that the Table Control permits a user to enter data is also good for my user. The Array of Cluster data looks like spreadsheet data and a Table looks close enough to a spreadsheet. A Table permits one to insert and delete rows, resize columns widths, and scroll around.
I don't see that I get these features with an Array of Clusters Control.
The issue with the Table Control is the lack of in-built data types, so I spend an inordinate amount of time doing type-conversion and range-checking.
At this point I'm pretty much convinced that LV doesn't have the in-built capability that I'm looking for.
I am curious if there are any LV libraries or Active-X controls somewhere that would implement the functionality that I require?
12-13-2006 08:24 AM
HI John,
This CAN be done in LV but you probably do not want to.
The Picture control will let you assemble any type of GUI presentation you want. Developing all of the code to implement this is daunting but do-able.
The really challenging part invloves the nature of the wires associated with this GUI object. LV want to know the data type. This means you will have to go with strings or variants.
If you HAVE to go this route then check out the examples linked in this thread.
http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14&jump=true
AND if you are succesful, please share back how you solved this challenge.
Trying to help,
Ben
03-18-2011 11:13 AM
I have the same question, but I don't understand this solution (is the link old?).
In my code I used multicolumn list box for database data entry : is heavy convert from cluster array to string matrix (to fill list box) and vice versa and this conversion is also specific for each table not general!
Labview version 2010
Thanks all,
regards
03-21-2011 03:06 PM
euTeam,
Im a bit confused with what youre trying to do. The original user is trying to achieve multi-column list box style functionality with dynamic controls from an array of clusters, which would be a very complex task. The options available are either using a multicolumn list box and figuring out how to convert data to the appropriate data type (a big task), or creating a picture box based custom tool, which would also be a very large endeavor.
What exactly are you trying to accomplish with this? What data are you trying to input to a database?
Regards,
Kyle Mozdzyn
Applications Engineering
National Instruments
03-30-2011 01:56 AM
I implemented a form to insert/update data in database with mclistbox (see picture)
Regards
03-31-2011 12:59 PM
euTeam,
Are you trying to perform the conversion of the custer data so that you can enter it into a mclistbox or are you trying to dynamically control the properties of the table?