How can you fill ListBox with channel group name dynamically?

I built a GUI in the 'View' pane that acts as a large table of contents. At the top of the GUI, there is a list box I want to dynamically fill with Group channel names loaded in my data portal (internal data). I can't generate the necessary code to do this. Currently, I use a ListBox control. Can I use an EnumListBox instead?

The purpose of the list box should allow fast loading data which must be analysed in several sheets (also in the part of 'View') for comparison side by side rather than drag and drop data into each individual record.

Any help would be appreciated,

Thank you

~ Nathan

Attached is a screenshot of the GUI I hope it helps.

Hey Nathan--

Have we met yet?  Don't think that I will remember to see you post on the forums of tiara so far (or remember you I meet someone named Nathan in person recently).  Welcome to the forums of tiara!

There are a few things that you need to change about your code snippet-

  1. The reason why you get the error "object required: ' [string: 'filename']' is because the Set command expects that the right side of an expression returns an object (you define your variable to)."  In your case, you return a string (the name of a group), not an object.  Simply remove the Set command.

  2. The ListBox.Items.Add () method requires two parameters - the first is the text of the item to insert in the list, and the second is a value to assign to this point (you can do single).

As a result, to more directly match your code snippet to the labour code, follow these steps:

Dim listNum, names
We = 1 to GroupCount
Name = GroupName (listNum)
Call selectData.Items.Add (names, we)
NEXT

Note that you can also use object programming oriented with the data object that represents the data portal, it is easier for you to avoid remembering variables such as GroupCount and GroupName DIAdem (that's me):

Dim listNum
We = 1 to Data.Root.ChannelGroups.Count
Dial selectData.Items.Add (Data.Root.ChannelGroups (listNum). Name, we)
NEXT

Your project is looking great - let us know how we can continue to help and keep us updated!

Tags: NI Software

Similar Questions

  • How can you fill a hollow fonts with color in Indesign

    Hello

    someone knows something about how to fill it with the color of the inside of a police dig?

    The policy in question is ROSEWOOD (rosewood - download free fonts)

    Here is a picture of the police.

    Rosewood.gif

    The white parts are actually empty hollow parts of the police...

    Any suggestion?

    OK, I found a solution... I found a version of the same font, called to FILL.  Using two layers, I was able to fill the police with police filling in the layer under.

    That being said, I still wonder if there is a way to fill the hollow fonts with colours, where a policy of filling would be unavailable...

    All suggestions welcome.

  • How can you change the name of a group on messages on Iphone message?

    How can you change the name of a group on messages on Iphone message if some of the people do not use an Iphone?

    Hello

    It is not possible to change the name of the group, because he was such an iMessage feature, because there is in the Group of devices that are not registered with iMessage this be possible.

    I hope this helps!

    Jonty

  • Watch does not recognize the weight class as exercise-how can you add the duration of activity manually because none of the presets eg elliptical etc. is appropriate. Also does not count calories for example 35 when the rest of the group is around 500

    Look does not recognize the weight class as exercise-how can you add the duration of activity manually because none of the presets etc for example elliptical is appropriate and therefore do not count toward the daily goal. Also does not count calories for example 35 when the average of the others in the group is around 500.

    Hello

    When you use the application of the training session, choose the type of activity that best fits your business. For anything else - like weight - select the other category.

    During the follow-up of one year to the next helps:

    • Activity app will credit the ring of progress of exercise with one minute for every minute of the workout.
    • Active calories will be based on the data recorded by the heart rate sensor or a brisk walk, whichever is greater.

    Note, however, that the heart rate sensor is likely to give better results for the workouts that involve rhythmic (for example running) rather than the irregular movements.

    More information:

    Use of the workout on your Apple Watch - Apple Support

  • How can you change a password on Vista for a group of net work at home

    How can you access the area to change the password for a group of net work at home? I'm unable to find had worked well but formatted Vista computer to make it faster. Now unable to find the box to change the password. Another computer on a network running 7.

    Hello

    What password are you talking?

    If it's regarding network sharing again the sharing.

    Maybe this can help.

    To get best results connect to each computer system screen and set all the computers to be on a bearing the same name of Working Group , while each computer has its own unique name.

    http://www.ezlan.NET/Win7/net_name.jpg

    Make sure that the software firewall, AV, or other security components allow free local traffic on all network computers. If you use the 3rd group of security, firewall native Vista/XP must be disabled, and the active firewall has adjusted to your network numbers IP on what is sometimes called the Zone of confidence (see part 3 firewall instructions

    General example, http://www.ezlan.net/faq.html#trusted
    Please Note that some 3rd party software firewall/AV/security costumes continue to block aspects of the Local traffic even it they are off (off).
    If possible, configure the firewall correctly or completely uninstall to allow a clean flow of local network traffic.

    If you end up with the 3rd party software uninstalled or disabled, make sure that Windows native firewall is active .

    Network Win 7 with another version of Windows as a work network (works very well if all computers are Win 7 also).

    In the center of the network, by clicking on the type of network opens the window to the right.

    Choose your network type. Note the check box at the bottom and check/uncheck depending on your needs.

    http://www.ezlan.NET/Win7/net_type.jpg

    Win 7 - http://windows.microsoft.com/en-us/windows7/Networking-home-computers-running-different-versions-of-Windows

    Win 7 network sharing folder specific work - http://www.onecomputerguy.com/windows7/windows7_sharing.htm

    Vista file and printer sharing - http://technet.microsoft.com/en-us/library/bb727037.aspx

    When you have finished the configuration of the system, it is recommended to restart everything the router and all computers involved.

    -------------

    If you have permission and security issues with Vista/Win7, check the following settings.

    Point to a folder that wants to share do right click and choose Properties.

    In the properties

    Click on the Security tab shown in the bellows of the photo on the right) and verify that users and their permissions (see photo below Centre and left) are configured correctly. Then do the same for the authorization tab.

    This screen shot is to Win 7, Vista menus are similar.

    http://www.ezlan.NET/Win7/permission-security.jpg

    The Security Panel and the authorization Panel, you need to highlight each user/group and consider that the authorization controls are verified correctly.

    When everything is OK, restart the network (router and computer).

    * Note . The groups and users listed in the screen-shoot are just an example. Your list will focus on how your system is configured.

    ** Note . All the users who are allowed to share need to have an account onall computers that they are allowed to connect to.

    Everyone is an account, that means a group of all users who already have an account now as users. It is available to avoid the need to configure permission for each on its own, it does not mean all those who feel that they would like to connect.

  • How can I fill out a pdf with Excel?

    I have a pdf form and a series of dates in Excel. How can I fill the form with the dates?

    Is it possible to convert excel dates in a fdf file?

    Thank you for helping

    Hans

    You can import form data in a PDF file if it is saved as a plain delimited by tabs

    text file, with the names of the fields in the first row and values of

    the second.

    Saturday, may 10, 2014, at 00:41, hanswuttkeessen1936

  • How can you name a group conversation if you use this feature?

    How can you name a group text if you use find my friends?  I am unable to scroll down on the details

    You can name a group text if all members use iPhones.

  • How can you check if you have a problem with the ghost attack

    How can you check if you have a problem with the ghost attack.

    My ISP (Virgin) sent me a letter saying I could have an attack on my apps by the phantom virus.

    How is this true and what can do

    The XcodeGhost malware affects the apps, mainly Chinese, created using a red version of Xcode.  It is not a 'virus '.  (Look at the difference between computer viruses and malware).  Remove the Apple listed here and get updated with the latest versions of the App Store.

  • need to take my computer back in the day that I first started it on7/21/2011 my restore point back up to now how can you start over from scratch with no disc?

    need to take my computer back in the day that I first started it on7/21/2011 my restore point back up to now how can you start over from scratch with no disc?

    Most OEM computers have a partition on the hard drive, that allows to give it bought as provided.  Usually, you activate this feature by pressing a key or combination of keys when the first splash screen appears at startup.  Look quickly at the first screen that appears, and you could see the key that you press.  Otherwise, go to your computer manufacturer's website and download the manual for your computer.  Instructions must be there.

    HTH,
    JW

  • How can you transfer the license Photoshop Elements on a new computer with Windows 8

    How can you transfer the license Photoshop Elements on a new computer with Windows 8?

    Hello

    Before installing it on the new system, please follow the steps below to disable Photoshop Elements from your old system.

    1. launch Photoshop Elements.

    2 - go to 'help' option and select 'disable '.

    Once disabled, you can download Photoshop Elements from the link below.

    Download Photoshop Elements products | 10, 11, 12, 13

    Let us know if this helps!

    Kind regards
    Vivet

  • using annotations of drawing, line free hand; How can you apply a fill or shadow of the object/area?

    using annotations of drawing, line free hand; How can you apply a fill or shadow of the object/area?

    You can not. The fill color property applies only to the following observation

    types: circle, square, line, Polygon, PolyLine, FreeText

  • How can I install CS6 with serial number only. You sent me?

    How can I install CS6 with serial number only. You sent me?

    You can download any product CS6, you speak from the page linked below.  The serial number can be used to enable as part of the installation.

    http://helpx.Adobe.com/x-productkb/policy-pricing/CS6-product-downloads.html

  • How can you change a text in an image?

    How can you change a text in an image?

    Hi Jasper,.

    It depends on how the text has been staged, and what has been done with the image after that.

    A quick test - what happens when you zoom in on, or enlarge the image?

    If the text retains its edges when amplified, then it can probably be edited separately from the image. If the text begins to show pixelation on the edges (like the picture), then there is no text to change, what looks like adding text is actually part of the image and can only be changed in the same way that you can change anywhere in the image.

    Here is an example:

    The photo is a photo (jpeg format), inserted in a Pages document created with the essay template. White text in the upper left corner of the photo is placed in a text box. To put the photo on this page (and the text on and around it) has been converted to a PNG file. When it is enlarged on this screen, the text finally a pixelated image...

    .. .the easily noticed in the thin relates diagonal 'o'.

    In Pages, however, the text and the picture are separated, and the text is a vector image - mathematically trained and scalable.

    The text here is contained in a text box and the text box was grouped with the photo. To change the text (in Pages), I need to:

    • Click on the text.
      Handles will appear in the corners of the selection.
      That click you select either the entire image OR just simply the text box.
      • IF the handles are blue x characters, the selection is locked
        Go organize (menu) > Unlock
        Sectionals unlocked handles are small white squares.
    • IF the selection includes the entire image
      • Go to the menu, rearrange and choose ungroup
        If the choice to separate is not available, the text may be part of the image and uneditable as text.
        Try to click twice (separated from the clicks, not double click).
        If the insertion point (|) is now in the text, the text is editable as text.
        Change the text.
    • IF the selection looks like a text box and does not the whole image
      • Click on the text to place the insertion point (]) in the text
        Change the text.

    Image showing the insertion point in the text in a text box on the image:

    Kind regards

    Barry

  • How can I correct a wrong channel list in Windows Media Center?

    I have pass my apartment, on 15.WMC HBO, when you do the scanning channels, see channel 15 as "Home-grown" and all of the programs as "Home-grown", although if I select actually it plays the correct registration of HBO. He said that HBO is channel 68, but when I try to go to who it says 'No Data available'. How can I get WMC to channel 15 as HBO, with correct registrations?

    then zap2it.com - Media Center users is the best place to report the
    sources of data for the EPG.  Don't know if
    you have at the moment.
     
     
    Barb
     
    MVP - Windows/entertainment and connected home
     
     
    Please mark as answer if that answers your question
     
     
     
     
  • How can you separate the pages into a number of pages?

    How can you separate pages and save it in different groups?

    With Adobe Reader, it is not possible.

Maybe you are looking for

  • Long-term storage of inkjet all-in-one (F4480)

    Is there a good way to prepare for storing ink jet printers long-term (> 1 year) so that the jets get clogged? We have a F4480 deskjet all-in-one that has not been used in several months.  As far as I know it still works fine.  It has been stored in

  • Reader of fingerprints of Qosmio X 500-12 L randomly refuses to work

    I have a pretty annoying bug on the 500-12 L X. The fingerprint reader is no longer random. I can put my computer to sleep 4 days in a row, the fifth day, when activated, no more fingerprints than reading. And just try login PASSWORD will result in a

  • Tecra M3 with Nokia PC suite for 6600

    I can detect the Nokia 6600, even use as a GPRS modem and transfer files FROM the phone, but any kind of response via Nokia PC suite does nothing, not even the works of IRda. There is nothing wrong with the phone because it works OK with a BT USB on

  • Single layer and progression of data

    Hi I have a SC4020 system with only a single level of storage. How does this affect data progression? Can I move forward I have given to different raid instead of different levels levels?

  • "Back" button and links

    In my application, I load a div tag and xlmhttp application from a remote server. Now my back button works very well unless there is a link on the remote page. If I add a link, say to facebook and you click on this link my app will go to facebook.  B