Excel Toolkit Get True False

Hi,
I am using the excel get data toolkit to get string.  It is reading in a for loop for a row by row read.  It is reading a string fine, but when the element is TRUE, the output is 0 in string.  When the element is FALSE, the output is -1 in string.  Why is that?  Why aren't I reading TRUE and FALSE instead.
Yik
Kudos and Accepted as Solution are welcome!

There are two options:
1. As Ravens Fan mentioned, you can put quotes around your TRUE and FALSE strings in Excel directly. This will likely be really tedious.
OR
2. Since you're reading line by line, you can check for a 0 or -1 are replace it with the TRUE and FALSE strings, respectively. This just requires a case structure after the read.
Tanya V
National Instruments
LabVIEW Platform Product Support Engineer

Similar Messages

  • Powershell DSC - Get registry value and send $True / $False depending on present or not

    Hello,
    With the script below, I can check if a registry key is present, and if it is not, it will create that registry key. But I just want to know if that registry key is present, and get $True / $False as a result of script. - Is this possible with DSC?
    Configuration ClientConfig
    Param ($MachineName)
    Node $MachineName
    Registry FooCorpReg1
    Ensure = "Present"
    Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Test1"
    ValueName = "Name"
    ValueData = "DSCDemo"
    # Save the MOF file
    ClientConfig -MachineName "localhost" -OutPutPath "c:\Temp\DSC"
    #Start configuration
    Start-DscConfiguration -Path "C:\Temp\DSC\" -Wait -Verbose
    Best regards,
    Anders Johansson

    Not what DSC does or is for.  Use erg to look for vale.
    Test-Path HKLM:\SOFTWARE\Test1\Name
    That is all - it returns true or false.
    ¯\_(ツ)_/¯

  • CP6 - True/False Question Type SCORM Problem

    We discovered a problem with CP6 and the True/False question type.  The screen shot below is the log file of what is passed to the LMS.  The question was a True/False question type.  The correct answer was False.  I selected False and the assessment showed that I got the answer correct.  However, the data that is being passed to the LMS is incorrect.  CP6 is sending a 't' when you select False and an 'f' when you select True.
    Yes, you can get around this by using a Multiple Choice question type and limit the answers to 2 with True and False as the options, but we should not have to do that.
    Any suggestions?

    There is a long discussion on Jim Leichliter's blog (captivatedev) about this. The team considered this to be correct, Jim disagrees.
    http://captivatedev.com/2012/12/04/captivate-true-false-question-bug/
    Cannot help you further,
    Lilybiri

  • Error: this type needs one of the following values('true','false')

    I'm trying to use <c:if> in a jsp (in Workshop 8.1), as in:
                   <c:if test="1 == 1">
              <!-- something here -->
              </c:if>
              But, I get the following message when I hover over the error indicator
              at the test:
              Error: this type needs one of the following values('true','false')
              It will actually work if I do:
                   <c:if test="true">
              <!-- something here -->
              </c:if>
              but, of course, that's useless.
              Am I missing something here?

    David Karr wrote:
              > The value of the "test" attribute needs to be an Expression Language expression. Try changing it to "${1 == 1}", and that should work.
              Actually, I had tried that, and it would have worked that way if I had
              the right taglib declaration -- I had accidentally left in the rt
              versions, so a <%= test %> type of expression worked.
              But, that's not the way I wanted to do it, so I put the non-rt versions
              in, along with tld and jar files that I had in some other directories,
              then it worked fine. In the process, when searching my hard drive for
              standard.jar, I noticed I had four or five different versions, each with
              a slightly different size. Of course, I had to tinker, and downloaded
              the zip from Apache, figuring it would be best to have a matched set of
              tlds and jars.
              And now I get an error that the matching class cannot be found:
              > ERROR: response.jsp:1: Package org.apache.taglibs.standard.tag.el.core contains no member type of this name.
              and
              > ERROR: response.jsp:14: The tag handler class was not found "org.apache.taglibs.standard.tag.el.core.IfTag".
              But, if I navigate the standard .jar that is in my WEB-INF/lib
              directory, lo and behold, there is the file IfTag.class in what appears
              to be the correct package.

  • URGENT: Covert a true - false value into a bit value

    Hello :)
    I have a problem, How can I convert a true false value into a bit value, because, I declare a variable value with true or false, that means that I have a 1 or a 0, (thinking about digital information)
    for example, one this is my part of my code:
    private boolean _x3 = true;
         private boolean _x5 = false;
         private boolean _x6 = true;
         private boolean _x7 = false;
         private boolean _x9 = true;
         private boolean _x10 = false;
         private boolean _x11 = true;
    public boolean CheckP1(boolean pP1)
              pP1 = x3^x5 ^_x7 ^_x9 ^_x11;
              return pP1;
    This method will send a true or false value, but now I have two doubts, one of them, is, how can get this value, and the second value, how can I conver this value into a bit value
    Thank you so much :)
    Nataly

    Look at a BitSet to hold your boolean values.
    Check the API for details.
    JJ

  • Logos with Alternative True-False

    Hello! Everyone
    I used true / false alternative for displaying certified logos of sales organization.
    I am upto the mark , but need some clarification to display this code in condition
    but I am unable to display the logo02 is it is not equal to OMAN.
    Where can I write the code so that 2 logos should display as per the code below
    IF IS_DLV_DELNOTE-HD_ORG-SALESORG = 'OMAN'
         LOGO1
    ESLEIF IS_DLV_DELNOTE-HD_ORG-SALESORG # 'OMAN'
         LOGO02
    ENDIF.
    Monto

    Hi Jonthan
    Thanks for your reply, no it is not sapscript but smartform
    IF IS_DLV_DELNOTE-HD_ORG-SALESORG = 'OMAN'.
    INCLUDE GSPL OBJECT GRAPHICS ID BCOL LANGUAGE DE.
    BITMAP 'CFTM_DNV_LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 200.
    ENDIF.
    I am writing this in global definations and my logo name are
    First logo
    NAME : QUALITY LOGO
    OBJECT : Graphics
    ID          : BMAP
    Radio button Color bitmap image (BCOL)
    second logo
    NAME:  CFTM_DNV_LOGO
    OBJECT : Graphics
    ID          : BMAP
    Radio button color bitmap image (BCOL)
    based on the above condition I have to display the logo
    I have added this log in graphics for first page and lastpage respectively but
    not getting idea how to display based on below condition
    IF IS_DLV_DELNOTE-HD_ORG-SALESORG = 'OMAN'.
    INCLUDE GSPL OBJECT GRAPHICS ID BCOL LANGUAGE DE.
    BITMAP 'CFTM_DNV_LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL DPI 200.
    ENDIF.
    Monto

  • How can I display True/False in my dropdownlist as "Yes" and "No"?

    Hi All,
    I want to bind a dropdownlist to a boolean value (so it's either true or false).  I'm particularly interested in using two-way binding to when the user changes from "yes" to "no" the boolean value automatically changes from "true" to "false."  But, I want the user to see "yes" and "no" as the options, rather than "true" and "false".
    How can I display "yes" and "no" and still take advantage of binding?  Or can I not use binding in this circumstance?
      -Josh

    Solution 1:
    In order to display Yes/No for True/False, you may specify labelFunction for the dropdownList.
    In MXML:
    <s:DropDownList labelFunction="myLabelFunction" />
    In actionscript:
    private var arr:ArrayCollection = new ArrayCollection(["true","false"]);
                private function mylabelFunction(item:Object):String
                    if(item.toString() == "true")
                        return "yes";
                    else return "No";
    OR
    Solution2:
    may be u can try making an array collection like
    private var arr:ArrayCollection = new ArrayCollection([{label:"yes",value:"true"},{label:"no",value:"false"}]);
    and specify labelField for the dropdownList like
    <s:DropDownList labelField="label" dataProvider="{arr}" />

  • I just upgraded to Yosemite. Now when I try to open Excel, I get a message that there's not enough memory.  When I check the storage under "about this Mac" it says I have 150 GB of 249 GB.  Help please.  Thanks

    I just upgraded to Yosemite. Now when I try to open one particular document in Excel, I get a message that there's not enough memory.  I can open other documents.  The document I can't get to is the spreadsheet of my passwords.  Go figure.  When I check the storage under "about this Mac" it says I have 150 GB of 249 GB.  I have a MacBook Air.  Help please.  Thanks, Connie

    I just upgraded to Yosemite. Now when I try to open one particular document in Excel, I get a message that there's not enough memory.  I can open other documents.  The document I can't get to is the spreadsheet of my passwords.  Go figure.  When I check the storage under "about this Mac" it says I have 150 GB of 249 GB.  I have a MacBook Air.  Help please.  Thanks, Connie

  • How to create an excel workbook using the excel toolkit

    I've starte working with the excel toolkit combined with the GOOP toolkit. After finding out that the GOOP Toolkit apparently has problems working with LabView 5, with which I developed my application, I changed to LabView 6. My first step was to open an existing excel workbook. Here I was successful. On the other hand I could not create a workbook using the excel open vi. Did I miss something?

    "Goyo" wrote in message
    news:50650000000800000060510000-1023576873000@exch​ange.ni.com...
    > I've starte working with the excel toolkit combined with the GOOP
    > toolkit. After finding out that the GOOP Toolkit apparently has
    > problems working with LabView 5, with which I developed my
    > application, I changed to LabView 6. My first step was to open an
    > existing excel workbook. Here I was successful. On the other hand I
    > could not create a workbook using the excel open vi. Did I miss
    > something?
    There's an input to the excel open that chooses "open workbook from file" or
    "open new workbook" which should do it. Unless you meant 'worksheet' in
    which case there is another function in the tookit to do that.

  • How to create report on excel without excel toolkit??

    Can anyone please tell me how to create an excel based report (much like what an excel toolkit produces) without having the luxury of
    an additional Microsoft Office toolkit/???
    thanks
    Now on LabVIEW 10.0 on Win7

    okey... simple question... i got the NI OFFICE toolkit, and i want to save all my DAQ data on an excel sheet and plot the graph for it....(create a report)
    my sampling speed it not much, 1 sample/sec. i am using the MS Office Report.vi to save the report to a file. however, i observe that if i add the MS Office Report.vi in while loop,
    the program keeps on asking for a file name every iteration unlike the Save to Measurement file.vi (where it asks only once and then keeps on adding data to the next file unless 
    any other logic is applied). also, it only saves the first 3 rows of data.
    how do i make the code so that the excel file saves the entire data and the graph plots a summary kind of plot of the data i have from the DAQ.
    Thanks in advance.
    Now on LabVIEW 10.0 on Win7

  • Control the render true/false after rollback in ValueChangeListener

    Hello
    I am using Jdeveloper 11.1.1.3.0 ADF BC.
    I have this problem:
    in my page I have some LOV that conrol the rendering true/false for other components,
    and we achieved this by a valuechangeLisntener method in a backing bean. and
    everything works well. However when we use the rollback the rendering does not work as expected.
    to clarify the problem, suppose we have LOV1(has two values 1,2) that control the rendering of
    LOV2, when the user selects 1 LOV2 will be rendered and when the user selects 2 LOV2 will be hidden
    now suppose that the default value of LOV1 is 2, so LOV2 is hidden, now the user change the value
    of LOV1 to 1 so the LOV2 will be rendered, now the user press rollBack the value of LOV1 will
    reset to 2 but the LOV2 is still rendered on the page. which is not true.
    initially I thought that I need to call the valueChangeListener method again after rollback,
    I found something like this in this thread:
    Dynamic ValuechangeListener Addition
    but this is for Jdeveloper 10g and that method is deprecated in 11g, as someone comments, and
    he mentioned that this is not the best practice. is there any working solution for this problem?
    can anyone help please

    Thank you LovettWB and Navaneeth for your suggestion, but unfortunately the problem is still exist.
    I will a snapshot for my code and my page definition.
    my page definition is:
    <af:selectOneRadio value="#{bindings.Citizen.inputValue}"
                                         label="#{bindings.Citizen.label}"
                                         required="#{bindings.Citizen.hints.mandatory}"
                                         shortDesc="#{bindings.Citizen.hints.tooltip}"
                                         id="citizen" autoSubmit="true"
                                         immediate="true"
                                         valueChangeListener="#{StudentInformationBean.showCountriesLOV}"
                                         binding="#{StudentInformationBean.citizenRadio}">
                        <f:selectItems value="#{bindings.Citizen.items}" id="si6"/>
                      </af:selectOneRadio>
    <af:selectOneChoice value="#{bindings.CountryOfCitizenship.inputValue}"
                                          label="#{bindings.CountryOfCitizenship.label}"
                                          required="#{bindings.citizenValue.inputValue=='غير كويتي'}"
                                          shortDesc="#{bindings.CountryOfCitizenship.hints.tooltip}"
                                          id="soc2"
                                          partialTriggers="citizen"
                                          binding="#{StudentInformationBean.countryOfCitizenship}"
                                          requiredMessageDetail="#{bundle.non_ku_country}"
                                          visible="#{bindings.citizenValue.inputValue=='0'}">
                        <f:selectItems value="#{bindings.CountryOfCitizenship.items}"
                                       id="si5"/>
                      </af:selectOneChoice>                      and my code is in the valueChangeLisitener is:
        public void showCountriesLOV(ValueChangeEvent valueChangeEvent) {
               // Add event code here...
               FacesContext context = FacesContext.getCurrentInstance();
               if(valueChangeEvent.getNewValue().toString().equals("0"))
                 System.out.println("the new citizen value is " + valueChangeEvent.getNewValue().toString());
               //  this.countryOfCitizenship.setRendered(false); 
                 this.countryOfCitizenship.setVisible(false);
                 this.countryOfCitizenship.setRequired(false);
                 context.renderResponse();            
               else
                 System.out.println("the new citizen value is " + valueChangeEvent.getNewValue().toString());
             //  this.countryOfCitizenship.setRendered(true);
                 this.countryOfCitizenship.setVisible(true);
                 this.countryOfCitizenship.setRequired(true);
                 context.renderResponse();
          public void rollBack(ActionEvent actionEvent) {
            // Add event code here...
            OperationBinding operationBinding = bindings.getOperationBinding("Rollback");
            System.out.println("perform the rollback");
            Object result = operationBinding.execute();
              AdfFacesContext adffacesctx = AdfFacesContext.getCurrentInstance();
            adffacesctx.addPartialTarget(this.citizenRadio);
            public void setRollBackButton(RichCommandButton rollBackButton) {
            this.rollBackButton = rollBackButton;
        public RichCommandButton getRollBackButton() {
            return rollBackButton;
         }any help or suggestion please.
    Edited by: M.Jabr on Feb 7, 2011 12:26 AM
    Edited by: M.Jabr on Feb 7, 2011 12:29 AM

  • TRUE/FALSE problem

    I got a wired situation with a VI I wrote.
    I have a case TRUE/FALSE structure, and first of all, the true-part is
    ALWAYS first executed. When this part is done, I execute the false-case,
    for message handling and so on.
    But in the true case, I generate some data I want to use as a source in
    the false case.
    So in true case the string is an indicator, but in the false case, that
    string is the source for displaying. Does anyone know how to solve this.
    This true/false case is part of a loop. So I tried with a SHIFT
    REGISTER, but that doesn't seem to work.
    Any tip is welcome !
    Thanks
    Kristof

    Sorry I posted my message so early, mayby because the sunshine that lights
    my mind, but I have found a solution myself. Just putting the value in a
    loop and in the false case, connect the previous shift-register-value with
    the next....
    Thanks anyway !
    Kristof Poppe wrote:
    > I got a wired situation with a VI I wrote.
    > I have a case TRUE/FALSE structure, and first of all, the true-part is
    > ALWAYS first executed. When this part is done, I execute the false-case,
    > for message handling and so on.
    > But in the true case, I generate some data I want to use as a source in
    > the false case.
    > So in true case the string is an indicator, but in the false case, that
    > string is the source for displaying. Does anyone know how to solve this.
    > This true/false case is part
    of a loop. So I tried with a SHIFT
    > REGISTER, but that doesn't seem to work.
    > Any tip is welcome !
    >
    > Thanks
    >
    > Kristof

  • 1. True/False

    I am busy with Photoshop Basic course. I have 2 True/False questions that I need help with. If answer is False, I need an explanation.
    1. True/False? If you want to move the selected pixels, rather than the selection marquee, you should drag with the Move tool, not a selection tool.
    2. True/False? Double-clicking a type layer's "T" thumbnail switches to the Horizontal Type tool and selects all of the text on that layer.
    Can you people help me, please?
    Thank you
    Monya

    first is totally true
    and in the second one double ckicking goes into text editing in general..
    if the text layer was written with horizontal type tool then double ckicking will make you go into that type of typing mode,
    if you created text layer with vertical tool, then doubleckicking the T will take you to vertycally typing mode

  • Question About Multiple Choice/True/False Answer Alignment

    When I insert a multiple choice or true/false question, The second response (answer B for either question type, is mis-aligned with it's radio button:
    The Master Slide for these questions looks like this:
    I can't figure out how to align the answer with its radio button.  Any ideas?
    I'm using CP 7.0.1.237 on Windows 7.

    This is indeed a very random issue. I have seen this in earlier versions of Captivate as well. I always create my template files from the blank theme, so I don't think it is specific to the theme.
    As for solutions, sometimes changing the quality of slide to high worked, other times just reopening Captivate worked. Here are some of the solutions I have found on these forums:
    1.  Create one more answer than I need (ie for a 4 answer question, create 5 answers) and then delete answer B.
    2.  Uninstalled/reinstalled my Captivate 6 software
    Sreekanth

  • 50th row in Excel always get truncated

    50th row in Excel always get truncated in one cell instead of breaking to a new row while downloading the output in transaction KSB1.

    Hi Deepa,
    If you download the data in a text file then atleast we can understand the source of error. To open it and view in excel you will have to do the following:
    1. Open excel and convert your existing worksheet into text mode (right click --> Format cells --> text mode)
    2. Copy the data from the downloaded text file.
    3. Save this in excel (text mode worksheet).
    The problem is with excel as your data may have some identifiers that change the way data is handled in Excel. There special characters (, ), *, =, !, etc. are used as identifiers and do the job of truncation or merging.
    Regards,
    Pranav.

Maybe you are looking for

  • Guys I need some help. String token of a wired message

    well this is my code. code: import java.*;import java.util.StringTokenizer;import java.io.*; class stringtoken {         public static void main(String[] args) {         Runnable daemonRunner = new Runnable()        {                public void run()

  • PHP/MySql Error Message

    I've posted this before and didn't get the answer that I need, probably because I didn't post all of my codes. I am using PHP/MySql.  I created a website that has several forms.  When I process three of the forms, I get the error messages below: You

  • Error:cannot access com.bea.p13n.exceptions.ApplicationException

    hello, I wrote an Input Processor class(named HelloIP.java) which extends InputProcessorSupport class. My class has process method which throws ProcessingException. When I tried to compile the class, I got error:connot access com.bea.p13n.exceptions.

  • View Photos Manually for MobileMe Album

    Hi All. I was given a nice suggestion about how I can order my images in an Album Manually before posting to MobileMe so that they show up in some kind of coherent order. Is this simply to go into the Photos view, get into the Album that I wish to or

  • [resolved]Creating a formal outline for a class.

    I'm taking a public speaking class, and I have to turn in my outline for it using the traditional form. For instance: I. intro A.attention getter B. Preview 1.blah 2. blah a. blah b. Blah I couldn't find a way to automate this in open office.  It wou