Controls Property Array being defined as an ENum

HI,  I have an example of an event handler that I am attempting to use with my menu.  I am using the controls[] property for the VI Panel and all is well with its execution.  The problem that I have is that I am going to have lots of controls and do not like the way that I have to use strings for the case structures using labels.text to determine what control to handle.  TYpically, I like to implement enum types for controls so that the case structure compares the numbers yet displays the text for code readability. 
Is there a way to systematically convert teh controls[][ property to an enum type for this purpose?
Attachments:
controls[]3.llb ‏26 KB

Enum values can't be set when the VI is running, so they have to be set at edit time. You can write a VI which will extract the names of the controls into the Strings[] property of an enum and then copy that enum into your VI, but the enum will be out of date if you change your controls.
Try to take over the world!

Similar Messages

  • LaTeX - package gensymb issue: control procedures not being defined?!

    I want to use the gensymb package in my LaTeX file. Most commands work fine, but for the following two I get an error:
    Package gensymb Warning: Not defining \perthousand.
    Package gensymb Warning: Not defining \micro.
    For me this is rather bad as I want to use \micro :
    ! Undefined control sequence.
    l.109 In \micro
    the first part of the experimant the experimental setup was
    What shall I do?

    bender02 wrote:
    Well, let me tell you how did I find it (I don't use that package at all):
    I went to CTAN, looked for that package, downloaded the .zip, unpacked. With most packages, you end up with a bunch of files, the important ones have suffix .ins and .dtx (eg. gensymb.dtx and gensymb.ins). Gensymb.dtx is the "source", which contains both the style file and the documentation. To get a .sty file out of it, you can run "latex gensymb.ins" (as in 'ins'tall), and it should load gensymb.dtx and produce at least gensymb.sty - that's the file you include in your latex files. Now to get documentation, just process the file gensymb.dtx itself with latex, and you end up with a .dvi.
    All in all, I just looked at that gensymb.dvi and it was there.
    Sometimes packages have an extra manual with them, you just need to look at the unzipped stuff from CTAN.
    After installing gensymb at the appropiate places a "texdoc gensymb" opens the documentation.

  • An unexpected 'invalid property array index' error occured in wdbrlog

    Hi experts,
    My system is :
    SAP_BW 7.0 Path  0012
    SAP GUI Final Release Patch 24
    In my query definition, I right-click on one of the characteristics..Eg. Posting Date --> Properties --> Change 'Suppress Results Rows' option from "Never" to "Always". --> Press OK.
    Then I get this pop-up with error message:
    <u>Program Error Intercepted
    An unexpected 'invalid property array index' error occured in wdbrlog.
    1 error(s) are logged.</u>
    If I say continue, it kicks me out of BeX. I need to re-login to do the stuff.
    I find some information, but i dont know what happens.
    Did anyone get the similar error?
    Thanks,
    Marc

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi
    <Br>
    I am afraid you may have to re-install your SAP GUI and Business Explorer.
    <Br><Br>Hope it helps.
    <Br>
    <Br>
    Cheers
    Abhijit
    <Br>* Removed
    </FONT>

  • Determining the number of elements defined in an enum

    Hello,
    I have an enum and I want to determine the number of elements (constants) defined in this enum by source code. I know I can use reflection but I just want to know if there's an easier way.
    Thank you very much.

    Hey JavaWisdom,
    You can use the ordinal method. I made a simple example to demonstrate.
    public class NumberOfEnums {
         public static enum Enumeration {
              item1, item2, item3, item4
         public void count() {
              Enumeration[] values = Enumeration.values();
              int numElems = 0;
              for (Enumeration type : values) {
                   if (type.ordinal() > numElems) {
                        numElems = type.ordinal();
              // Correct 0 indexed numbering
              numElems += 1;
              System.out.println("numElems : " + numElems);
         public static void main(String args[]) {
              NumberOfEnums noe = new NumberOfEnums();
              noe.count();
    }Cheers,
    Cypher

  • An unexpected u2018invalid property array indexu2019 error in wdbrlog

    Hi Gurus:
    When I try to change te property of a characteristic in BEx, I end up getting "An unexpected u2018invalid property array indexu2019 error in wdbrlog", This follows with the
    Run-time Error u20182147221499 (80040005) - Fatal terminating Error;
    Subsequently it throws me out of Bex with - Run-time error u2018429'
    Has anyone experienced this and how can I correct this? We are in BW 3.5
    Thanks..... ShruMaa

    Hi Shruti,
              Check belwo SAP note.
    SAP note : 1109197
    hope this will help you.
    Thanks,
    Vijay.

  • Who else has a problem with parental controls enabled not being able to run Firefox on the Mac?

    Who else has a problem with parental controls enabled not being able to run Firefox on the Mac? (Any solutions?) (BTW. Chrome doesn't work either)

    Although FF4 is so nice I'm almost ready to ditch iGoogle!
    Please fix what appears to be an RSS/iGoogle issue with FF4...
    Gmail is fine, but titles dont show in most RSS feed gadgets and no stories, strangely, apart from this one:
    http://www.google.com.au/ig/directory?hl=en&url=www.google.com/ig/modules/builtin_news_technology.xml
    Which if you enter the last part of the url reports that
    "<Content type="html">
    This is a builtin module, so the UserPrefs and Content are ignored."
    Any ideas?

  • How to stop control characters from being tokenized?

    In Oracle 11.2.0.3
    I have documents which has embeded Arabic and so there is a control character \u202b to indicate right-to-left string. How do I stop these kinds of control characters from being tokenized. Doing a search with CONTAINS(search_string,' \u202b')>0 finds documents. Do I just add the '\u202b' as a stopword?

    What lexer are you using, Amin?
    I assume from what you say that the characters are getting indexed as whole tokens?  If so, adding them as stopwords should work, but I'm surprised they're getting indexed at all - sounds like a fault in the "alphanumeric indentification" code to me.
    I'm going to take a guess this is the World Lexer.  Am I right?

  • Can weblogic client takes empty arrays being returned.

    Hi All:
    I am using weblogic 9.2 to generate the web service client code.
    Here is my build.xml file to build the java client code:
    >
    <project name="webservices-TEST" default="client">
    <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
    <target name="client" >
    <clientgen
         wsdl=" http://test:7035/TEST-engine/services/accumulator.wsdl"
         destDir="clientclasses"
         packageName="com.TEST.TEST2.caps.wsclient"
         >
    </clientgen>
    </target>
    </project>
    Here is my client code to test the web service.
    >
    public class testWebServicesClient
         public static void main(String[] test)
              try {
              Long recipientId = 11597997730620L;
              AccumulatorWS impl = new AccumulatorWS_Impl("http://test:7035/TEST-engine/services/accumulator.wsdl");
              IAccumulatorWS iAccWS1 = impl.getIAccumulatorWS();
              AccumulatorResponse response = iAccWS1.getCurrentAccumulators(recipientId, "", "", "", "en", "");
              System.err.println("The status is: " + response.getStatus());
              catch (Exception e) {
              e.printStackTrace();
    I get the following error:
    java.rmi.RemoteException: Illegal Capacity: -1; nested exception is:
         java.lang.IllegalArgumentException: Illegal Capacity: -1
         at com.test.wsclient.IAccumulatorWS_Stub.getCurrentAccumulators(IAccumulatorWS_Stub.java:46)
         at test.testWebServicesClient.main(testWebServicesClient.java:27)
    Caused by: java.lang.IllegalArgumentException: Illegal Capacity: -1
         at java.util.ArrayList.<init>(ArrayList.java:111)
         at com.bea.staxb.runtime.internal.util.collections.ArrayListBasedObjectAccumulator.createNewStore(ArrayListBasedObjectAccumulator.java:42)
         at com.bea.staxb.runtime.internal.util.collections.ObjectAccumulator.<init>(ObjectAccumulator.java:39)
         at com.bea.staxb.runtime.internal.util.collections.ArrayListBasedObjectAccumulator.<init>(ArrayListBasedObjectAccumulator.java:31)
         at com.bea.staxb.runtime.internal.util.collections.AccumulatorFactory.createAccumulator(AccumulatorFactory.java:37)
         at com.bea.staxb.runtime.internal.util.collections.AccumulatorFactory.createAccumulator(AccumulatorFactory.java:74)
         at com.bea.staxb.runtime.internal.SoapArrayRuntimeBindingType.createIntermediary(SoapArrayRuntimeBindingType.java:255)
         at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createIntermediary(RuntimeBindingProperty.java:117)
         at com.bea.staxb.runtime.internal.SoapUnmarshalResult.unmarshalElementProperty(SoapUnmarshalResult.java:364)
         at com.bea.staxb.runtime.internal.SoapUnmarshalResult.basicExtractAndFill(SoapUnmarshalResult.java:241)
         at com.bea.staxb.runtime.internal.SoapUnmarshalResult.extractAndFillElementProp(SoapUnmarshalResult.java:174)
         at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
         at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
         at com.bea.staxb.runtime.internal.SoapUnmarshalResult.umarshalComplexElementWithId(SoapUnmarshalResult.java:395)
         at com.bea.staxb.runtime.internal.SoapUnmarshalResult.unmarshalElementProperty(SoapUnmarshalResult.java:366)
         at com.bea.staxb.runtime.internal.SoapUnmarshalResult.basicExtractAndFill(SoapUnmarshalResult.java:241)
         at com.bea.staxb.runtime.internal.SoapUnmarshalResult.extractAndFillElementProp(SoapUnmarshalResult.java:174)
         at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
         at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:38)
         at com.bea.staxb.runtime.internal.SoapUnmarshalResult.unmarshalBindingType(SoapUnmarshalResult.java:110)
         at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalType(UnmarshalResult.java:212)
         at com.bea.staxb.runtime.internal.SoapUnmarshallerImpl.unmarshalType(SoapUnmarshallerImpl.java:93)
         at weblogic.wsee.bind.runtime.internal.EncodedDeserializerContext.unmarshalType(EncodedDeserializerContext.java:66)
         at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.internalDeserializeType(BaseDeserializerContext.java:170)
         at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeType(BaseDeserializerContext.java:87)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodePart(SoapDecoder.java:401)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodeReturn(SoapDecoder.java:316)
         at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:165)
         at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:116)
         at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:136)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeOutput(CodecHandler.java:117)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.decode(CodecHandler.java:94)
         at weblogic.wsee.ws.dispatch.client.CodecHandler.handleResponse(CodecHandler.java:71)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:242)
         at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:226)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.handleResponse(ClientDispatcher.java:161)
         at weblogic.wsee.ws.dispatch.client.ClientDispatcher.dispatch(ClientDispatcher.java:116)
         at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
         at weblogic.wsee.jaxrpc.StubImpl._invoke(StubImpl.java:335)
         at com.test.IAccumulatorWS_Stub.getCurrentAccumulators(IAccumulatorWS_Stub.java:37)
         ... 1 more
    If I changed from
    Long recipientId = 11597997730620L;
    to
    Long recipientId = 14998712L;
    I get the error message The status is: 4.
    The group that generates the web service state that the weblogic client code is choking
    on empty arrays being returned. They say they have to return empty arrays
    instead of nulls where no data is returned.
    Is there something wrong with the weblogic tools
    or am I using it incorrectly?
    Yours,
    Frustrated.

    you'd have to check your generated code.
    If it can't handle empty arrays that would bring my trust in Bea's code down another notch (and from what I've experienced indirectly of their WS stack I wasn't all that thrilled).

  • Tab Control Property Node gives a build error when used in a VI for LabVIEW PDA

    Hello,
        Iam new to LabVIEW development & need help regarding this:
        We are trying to port a LabVIEW application from desktop to a Windows Mobile PDA. Please note that the LabVIEW application works fine on the desktop. In one of the VIs, a Tab control property node is used which gives a build error with LabVIEW PDA project. A sample VI which shows the problem & the error list snapshot is attached with this post. Can anyone please suggest an alternate approach to achieve the same functionality with LabVIEW PDA? Waiting for an early response from anyone...
    Thanks & Regards,
    Subhashini
    Attachments:
    VI_Error.zip ‏31 KB

    Hello Ton,
        Am glad that i got a response, thanks. The following links indicate that Tab control is supported on PDA target:
    http://digital.ni.com/public.nsf/allkb/CBA335641E27B858862571490015EA88?OpenDocument
    http://forums.ni.com/ni/board/message?board.id=170&message.id=221507&requireLogin=False
        I feel that the Tab control property node that has been used in the VI (which is attached earlier) may not be supported on the PDA target. Can u (or any LabVIEW expert) suggest an alternate approach to achieve the same goal with LabVIEW PDA (changing colour of Tab control pages programatically)??
        I had missed out some details earlier: We are using LabVIEW 8.5 PDA module on a Windows Mobile PDA.
    Thanks & Regards,
    Subhashini

  • Control the array shell size in running

    Dear,
    My data will be presented in an array.
    The size of array could be changed depending on a user.
    However, I would like to control the array shell size to the real size of the arry as shown in attachment.
    Is it possible to control the shell arry to fit correctly (with/without scrolling bar)?
    (I couldn't find out the function)
    메시지가 04-02-2007 07:05 PM에 labmaster에 의해 편집되었음
    Attachments:
    ddd.png ‏7 KB
    fff.png ‏5 KB

    What is it that you don't understand. Will a picture help?
    Message Edited by Dennis Knutson on 04-02-2007 09:03 PM
    Attachments:
    Table Column Properties.PNG ‏2 KB

  • Tree Control Property Node for Accessing "Child Text" String Array

    When adding items to a tree control using the EditTreeItems invoke nodes, the inputs include "Child Tag", "Item Indent", "Child Only?", "Glyph Index", "Child Text", and "Left Cell String" as can be seen in this screenshot.
    There are property nodes for the tree control for accessing each of these elements, except for the "Child Text", which is an array of strings. It is possible to access this data as outlined in this forum post, but this method is somewhat involved and round about. 
    I suggest that a property for the Tree class be created to access the Child Text array directly.

     The work around only works if you do not have an empty string element some where in the middle.
    At lest could the "Active Celltring Property" read return an error when you have gone beyond the end of the array.

  • Controlling property node inside a arrayed cluster

    I need help on how can i change programmaticaly a color of led/boolean on a specific element in an arrayed cluster.
    attached is sample vi, i need to change the color of the status led boolen to yellow if the sn = 'No Unit'.
    tried to use property node but it did change all the element in an array. 
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site
    Solved!
    Go to Solution.
    Attachments:
    try.vi ‏12 KB

    Arrays must contain identical elements.  If those elements are clusters its not an issue but lets simplify your array to an array of booleans for clarity.  but each element in an array most have the same properties.  You will not be able to change the Colors4[] property on one element of the array although you can set the Colors4[]property on ALL elements of the array. 
    In your case- it sounds like you need a control type that can have multiple values (color box) to display one of several colors (Green=good ser, Yellow = No ser, Red = Bad ser, ect.) and not a boolean that has exactly 2 possible values.  Here's a custom button I got as a gift a while back.  See if it helps
    Jeff
    Attachments:
    Round Color Box.ctl ‏4 KB

  • Graph control reference array conflict

    My vi has 6 graphs, and I need to modify them through property nodes through out my vi, so I wanted to store all the graph references into an array and pass it along.  When I do that, I am getting a class conflict between my input array and array in cluster.  They are both waveform Waveform Graph Refnum (strict), so I am not sure why there is a conflict.  See attachment for additional info.
    Kudos and Accepted as Solution are welcome!
    Solved!
    Go to Solution.
    Attachments:
    ref.PNG ‏4 KB

    all elements of an array can differ only in value and must be exactly the same type of data in  this case ref classes. WHen you build an array from diferent ref types LV find the common class shared by all elelements of the array and cast them all to that type. Extreme case... if you included a boolean in your array the only property you would find are visable and lable (may a fw more).
    So by using a cluster each ref can be different and provided I coded it right be exactly the strict ref of the original and there allow me to access all of the properties associated with that class of control.
    I hope that cleared up some confusion,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to access component's control property from main .mxml file

    I have a main .mxml while in which i imported custom
    "popUpWindow" component using "import component.popUpWindow"
    statement. In main .mxml file I display later on that component as
    popUp window using popUp manager class. Once component is
    displayed, how can i access using actionscript component's
    TextInput control (specifically its .text property) from my main
    .mxml file?
    thanks

    I posted this answer elsewhere, maybe it will help:
    First, save the new component wherever you keep your
    components, let's say you call it "MyPopWindow.mxml"
    Assign public variables for the string in both the main app
    and the popup.
    In your case, in the main app:
    Code:
    public var myText:String = "whatever the text field should
    say.";
    and then in the pop up mxml:
    Code:
    [Bindable]
    public var myText;
    Then, in the main mxml file:
    Code:
    // define the window type
    private var popWin:MyPopWindow;
    private function popMeUp(event:MouseEvent):void{
    popWin =MyPopWindow(PopUpManager.createPopUp(this,
    MyPopWindow, true));
    popWin.myText = myText;
    The important things here to notice is the name of the
    component (i.e. the file) is used. A variable is created for the
    window, and TYPED to your file name. Then you use the constructor
    you already had, but again use your type. The "true" is optional
    and gives you a modal popup window.
    Lastly, assign the variable in the window (I called mine
    popWin) to the variable in the main file you want to pass.

  • Binding EasingColorKeyFrame value to control property

    I have an animation that quickly changes the background of a custom control. Originally all the values for the EasingColorKeyFrames where set to static resource properties. I'm attempting to change these values to use a Color dependency property of the control
    but it does not seem to be working. Below is my StoryBoard definition
    <Storyboard x:Name="PadFlash">
    <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="Pad">
    <EasingColorKeyFrame KeyTime="0:0:0.0" Value="#FFBB9F8F"/>
    <EasingColorKeyFrame KeyTime="0:0:0.2" Value="{Binding RelativeSource={RelativeSource Self}, Path=CurrentColor}"/>
    </ColorAnimationUsingKeyFrames>
    </Storyboard>
    The control background that I'm animating can have it's background configured at runtime and I need my animation to quickly flash a highlighting color then return to the background of the control. Since the control background is configurable the animation
    value for the last EasingColorKeyFrame needs to be dynamic and use the CurrentColor property as its value. CurrentColor is a dependency property of the control and is working correctly in code behind but not in this animation. When the animation occurs
    the highlight color appears then the control background turns to black and I can tell from debugging that the getter of the dependency property is not being called.
    Is it possible to use a dependency properties for EasingColorKeyFrame animation values?

    The definition of EasingColorKeyFrame class support Dependency Object.
    https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.media.animation.easingcolorkeyframe.aspx.
    http://stackoverflow.com/questions/8892234/binding-easingcolorkeyframe-value.

Maybe you are looking for

  • Dual-Net : What's it all about???

    Hi,     Looking at http://www.msi.com.tw/program/products/mainboard/mbd_index.php there's an advert at the top of the page advertising 'dual-net'. Now this looks like a socket 745 or 939 motherboard with something using the comm slot - which apparent

  • Reinstalling Photoshop CC (Windows 7)

    I am not able to reinstall photoshop cc. I have run the cleaner and restarted my computer but I am still getting an error message: Exit Code: 6 Please see specific errors below for troubleshooting. For example,  ERROR:   -----------------------------

  • AVCHD Media for PowerPC based hardware

    I have posted this earlier in an other thread but my posting has so far been ignored, so I am trying a new thread: We have just invested over 1500$ to upgrade to FCStudio 2 as well as stashing 3 more gigas of SDRAM into a G5, as I need to edit HD vid

  • HOWTO deploy a JClient App in a 3tier Environment : Road Map needed.

    I've a JClent App and I need to run it in a 3tier environment. I mean I need to have as less code as possible running onto the client, distributed via Web Start, and as much code as possible running onto the Application Server (OC4J) in orer to take

  • BW configuration in dev server

    hi all Due to money constraints company are planning to implement Biw in the same system as development or in prd .Please can anyone post how to configure a client as a biw client in the same system on dev or on prd thanks