"Reset" declared variables to initialized state?

Hiya!
This might sound like a very stupid question, but I have not figured out a way to do this. I am working on a "personal information manager", where users can enter a date in a lovely swing textfield, it get's parsed to Integer and a GregorianCalendar is created with it. Once I created the Calendar, the TextFields are emptied again, but of course the Integer instance variables are still declared with the old values. This leads to the fact that a user could click "add date" again and a date is created without entering any number at all.
My question:
Is it possible to set declared variables back to the state they had when initialized? They should be "empty"...
I can`t set them null...
Thanks for your help, it's much appreciated!

The only type of variable where "empty" has any meaning is for an empty string: "". Otherwise there is no empty. Objects are by default initialized to null, numeric primitives to zero, and I think chars to '' but I could be mistaken about that one - I never use chars. So if you're using Integers, they could either be null, or an Integer - nothing else.

Similar Messages

  • Reset View to its initial state

    Hi experts,
    In my Webdynpro componenet I am navigating between different views. I am displaying data in one view by entering the selection fields. And, when I come back to this view the selection and the data remains in the view. I want the view to be displayed in its initial state every time. Is there any method to reset the view, to be handled in WDDOEXIT?
    Thanks,
    Sharmila

    Hi Sharmila ,
    Change the lifetime of the view to when visible.
    and it will not decrease your performance .
    Refer to this wiki for the same :
    [http://wiki.sdn.sap.com/wiki/display/Community/HighperformanceofWebdynpro+ABAP]
    Regards
    Kuldeep

  • SQL Expression Field - Combine Declared Variable With Case Statement

    Hello All, I have been using Crystal & Business Objects for a few months now and have figured out quite a bit on my own. This is the first real time I have struggled with something and while I could do this as a Formula Field I would like to know how to do this as a SQL Expression. Basically I want to create a SQL Expression that uses a CASE statement but I wanted to make the code a little more efficient and employ a variable to hold a string and then use the variable in the CASE statement. The expression editor accepts the CASE statement OK but I don't know how to declare the variable. Please assist with the syntax?
    This is what I have:
    CASE
       WHEN u201CDatabaseu201D.u201DFieldu201D = u2018Hu2019 THEN u2018Hedgeu2019
       WHEN u201CDatabaseu201D.u201DFieldu201D = u2018Pu2019 THEN u2018PVIu2019
       ELSE u2018Noneu2019
    END
    This is what I want:
    DECLARE strVar AS VARCHAR(25)
    strVar =  u201CDatabaseu201D.u201DFieldu201D
    CASE
       WHEN strVar = u2018Hu2019 THEN u2018Hedgeu2019
       WHEN strVar = u2018Pu2019 THEN u2018PVIu2019
       ELSE u2018Noneu2019
    END

    Hi Todd,
    Please use the following for loop; your problem will be solved.
    Local StringVar str := "";
    Local NumberVar strLen := Length ({Database.Field});
    Local NumberVar i;
    For i := 1 To strLen Do
           if {Database.Field} <i> = "H" then str := "Hedge"
            else if {Database.Field} <i> = "P" then str := "PVI"
            else str := "None"; exit for
    str
    Let me know once done!
    Thank you,
    Ashok

  • LMS 3.1 on Solaris 10 - Reset all databases to initial state

    Hi,
    Is there a script that would clear all databases for LMS 3.1 on Solaris 10?
    I imported do CS some devices from a CSV file I exported from an old LMS 2.5 server we had. I get some very strange results when I ask to sync archive for instance. The devices I manually added work fine, but the ones I imported get stuck and the job takes forever to finish (10 hours in some instances, for 230 devices).
    I'd like to re-start from scratch without having to uninstall and reinstall LMS.
    Thanks,
    Jose Ribeiro
    MGS

    See this DOC for the commands to reinitialize all databases.

  • How to reset a particular view object alone to it's initial state??

    Hi,
    My application contains view objects with custom data source implementation. One of my requirement is to reset the particular view object alone to it's initial state. I can't use rollback since it is at Db Transaction level. I searched in forums and finally written the following coding to achieve it. It works fine during sometime but sometimes i am getting the exception oracle.jbo.DeadEntityAccessException: JBO-27101: Attempt to access dead entity in Person, key=oracle.jbo.Key[1 -10 ]
        public void resetPersonViewObject(String voName) {
            Iterator dirtyItr = this.getEntityDef(0).getAllEntityInstancesIterator(this.getDBTransaction());
            while (dirtyItr.hasNext()) {
                Object obj = dirtyItr.next();
                if (obj instanceof EntityImpl) {
                    EntityImpl entity = (EntityImpl)obj;
                    String state = null;
                    byte entityState = entity.getEntityState();
                    switch (entityState) {
                    case Entity.STATUS_INITIALIZED:
                        state = "Initialized";
                        // Don't do anything
                        break;
                    case Entity.STATUS_UNMODIFIED:
                        state = "Un-Modified";
                        // Don't do anything
                    case Entity.STATUS_DEAD:
                        state = "Dead";
                        // Don't do anything
                        break;
                    case Entity.STATUS_DELETED:
                        state = "Deleted";
                        entity.revert();
                        // entity.refresh(Entity.REFRESH_CONTAINEES);
                        break;
                    case Entity.STATUS_MODIFIED:
                        state = "Modified";
                        entity.refresh(Entity.REFRESH_UNDO_CHANGES);
                        break;
                    case Entity.STATUS_NEW:
                        state = "New";
                        entity.refresh(Entity.REFRESH_FORGET_NEW_ROWS);
                        entity.refresh(Entity.REFRESH_REMOVE_NEW_ROWS);
                        break;
                    System.err.println("State : " + state);
            getDBTransaction().clearEntityCache(getEntityDef(0).getFullName());
            getViewObject().clearCache();
    }Questions:
    1. How to achieve my requirement? Is there any code correction required?
    2. How to reset the row which is actually deleted by the user?
    3. The sample code shown above is applicable for all the view object instances which are created from the same entity? What should i do if i want to reset a particular instance of a view object (I may use different instance of same view object at various screens whereas i want to reset only one)
    Can anyone help on this??
    Thanks in advance.
    Raguraman
    Edited by: Raguraman on Apr 24, 2011 8:48 PM

    Hi,
    As per my requirement, i use various instances of same view object in various dynamic tabs only. Since each tab has its own transaction, refreshing an EO of a particular transaction will refresh only the VO instances which comes under that transaction. So it will not cause any issue for my requirement i hope.
    Requirement: Need to reset a particular entity driven view object instances.
    Tried Schema: Departments table of HR Schema. Tried using the Application Module tester.
    Code i use:
        // Client Interface method of DepartmentsViewImpl
        public void resetView() {
            Iterator dirtyItr =
                this.getEntityDef(0).getAllEntityInstancesIterator(this.getDBTransaction());
            while (dirtyItr.hasNext()) {
                Object obj = dirtyItr.next();
                if (obj instanceof EntityImpl) {
                    EntityImpl entity = (EntityImpl)obj;
                    byte entityState = entity.getEntityState();
                    switch (entityState) {
                    case Entity.STATUS_UNMODIFIED:
                        break;
                    case Entity.STATUS_INITIALIZED:
                        break;
                    case Entity.STATUS_DEAD:
                        break;
                    case Entity.STATUS_DELETED:
                        entity.refresh(Entity.REFRESH_WITH_DB_FORGET_CHANGES);
                        break;
                    case Entity.STATUS_MODIFIED:
                        entity.refresh(Entity.REFRESH_UNDO_CHANGES);
                        break;
                    case Entity.STATUS_NEW:
                        entity.refresh(Entity.REFRESH_FORGET_NEW_ROWS);
                        entity.refresh(Entity.REFRESH_REMOVE_NEW_ROWS);
                        break;
            getDBTransaction().clearEntityCache(getEntityDef(0).getFullName());
            getViewObject().clearCache();
    Issue i have:
    1. Add a blank row (Soon transaction has become dirty). Call the resetView() client interface. It gives me JBO-25303: Cannot clear entity cache model.eo.Departments because it has modified rows
    2. Modify any row and then delete the same row. Call the resetView(). It gives me JBO-27101: Attempt to access dead entity in Departments, key=oracle.jbo.Key[10 ]
    [NOTE:  Above code works fine when for simple deletion of rows, modification of existing rows, new rows]
    Edited by: Raguraman on Apr 24, 2011 8:48 PM

  • TOO_MANY_ROWS leaves variable in indeterminate state - Is this a bug?

    Hello all,
    Please see below that despite the handled exception, PL/SQL still alters the coontents of the variable. - I cannot reply on its initial state if there is a possibility of a TMR exception ..... it seems.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    5 rows selected.
    SQL> -- Is this a problem ????
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL> create table tab1(col1 varchar2(12) );
    Table created.
    SQL>
    SQL> insert into tab1 values ('A');
    1 row created.
    SQL> insert into tab1 values ('B');
    1 row created.
    SQL> insert into tab1 values ('A');
    1 row created.
    SQL>
    SQL> select * from tab1;
    COL1
    A
    B
    A
    3 rows selected.
    SQL>
    SQL> declare
    2 l_var varchar2(12) := 'Y'; -- initialise
    3 begin
    4
    5 dbms_output.put_line('Initialise l_var: '||l_var);
    6
    7 select col1
    8 into l_var
    9 from tab1
    10 where col1 = 'A';
    11
    12 dbms_output.put_line('Never get here - l_var: '||l_var);
    13
    14 exception
    15 when TOO_MANY_ROWS then
    16 dbms_output.put_line('What am i now? l_var: '||l_var);
    17 end;
    18 /
    Initialise l_var: Y
    What am i now? l_var: A
    PL/SQL procedure successfully completed.
    SQL>
    SQL>
    SQL> drop table tab1;
    Table dropped.
    SQL>
    If you would like to try this yourself, cut from here ....
    -- Is this a problem ????
    set serveroutput on
    create table tab1(col1 varchar2(12) );
    insert into tab1 values ('A');
    insert into tab1 values ('B');
    insert into tab1 values ('A');
    select * from tab1;
    declare
    l_var varchar2(12) := 'Y'; -- initialise
    begin
    dbms_output.put_line('Initialise l_var: '||l_var);
    select col1
    into l_var
    from tab1
    where col1 = 'A';
    dbms_output.put_line('Never get here - l_var: '||l_var);
    exception
    when TOO_MANY_ROWS then
    dbms_output.put_line('What am i now? l_var: '||l_var);
    end;
    drop table tab1;

    I presume you are talking of "right" in a moral sense, rather than any other sense. An nice philosophical point.
    Look at it this way. In the old days, Oracle wiped the variable whenever a TOO_MANY_ROWS exception was raised. This is "clean" but sometimes people might want to know the previously fetched value. Hence the change in Oracle 8. If you don't want to know the value, then just ignore it in the exception handler.
    The only scenario it which I can see this being a potential problem is when you're fetching into an OUT parameter.. This is of course A Bad Thing and as it happens Oracle seems to save us from ourselves (at least in 9.2.0.6)...
    SQL> set serveroutput on
    SQL> var n number
    SQL> create or replace procedure get_emp_sal (p_name in varchar2, p_sal out number)
      2  as
      3     l emp.sal%type;
      4  begin
      5       select sal into l
      6      from emp
      7      where ename = p_name;
      8      p_sal := l;
      9  exception
    10      when too_many_rows then dbms_output.put_line('l='||l);
    11  end;
    12  /
    Procedure created.
    SQL> exec get_emp_sal ('VAN WIJK', :n)
    l=1250
    PL/SQL procedure successfully completed.
    SQL> print n
             N
    SQL>  create or replace procedure get_emp_sal (p_name in varchar2, p_sal out number)
      2  as
      3     l emp.sal%type;
      4  begin
      5      select sal into p_sal
      6      from emp
      7      where ename = p_name;
      8  exception
      9      when too_many_rows then dbms_output.put_line('l='||l);
    10  end;
    11  /
    Procedure created.
    SQL>  exec get_emp_sal ('VAN WIJK', :n)
    l=
    PL/SQL procedure successfully completed.
    SQL>  print n
             N
    SQL> Cheers, APC

  • Is initial state of a Java stack frame stored somewhere

    In My IDE (Eclipse), debugger has an option "Drop to Frame" for each method in the method stack, which when clicked resets the stack to the initial state of the selected method.
    How is the operation achieved?
    Is this an potion from JDB or IDE would have stored the initial state of all method stack frames?
    How could have static variables for other classes got reset?

    http://www.coderanch.com/t/485739/Java-General/java/initial-state-Java-stack-frame

  • Can we declare primary as initially deferred deferrable

    Hi,
    Anyone know Can we declare primary as initially deferred deferrable...What is the syntax like?
    Thank You....

    Left's first look at the approach you use.. 2 SQL statements that can be done using a single SQL statement.
    Actually it is not as bad as some other code posted here where people go and write complex PL/SQL code to do what could have been done using a single SQL statement.
    There are a couple of golden rules in Oracle development. One of these is to 'Maximise SQL and Minimise PL/SQL'.
    Why take a value from one SQL statement into PL/SQL and then use that value in a second SQL statement?
    Rather do this:
    select
    fn into n
    from table2
    where id like (Select a from table1 where b like b_new);Also keep in mind that in PL/SQL the above SQL construct is only able to fetch a single row - look at the bold above. The variable N can only hold a single value. If that SQL SELECT returns more than one value, how is variable N suppose to hold it?
    I suggest that you read [url http://www.oracle.com/pls/db102/to_toc?pathname=appdev.102%2Fb14261%2Ftoc.htm&remark=portal+%28Books%29]Oracle® Database PL/SQL User's Guide and Reference guide.

  • Resetting presentation variable set by prompt

    Say I have 2 prompts, State and City, driven by a single go button. The State prompt sets a presentation variable called STATE_VAR and the City column prompt filters its choice list values based on the STATE_VAR and sets its own presentation variable CITY_VAR when the user selects a choice from the list. Both prompts have defaults - the STATE_VAR prompt defaults to a specific state on initial page load and the CITY_VAR defaults to nothing (None option in the prompt dialogue).
    This issue I want to solve is resetting the CITY_VAR presentation variable to nothing (as per the default None option in the prompt dialogue) when the user selects a different state in the State prompt. The sequence I want to achieve is listed below.
    1) On page load STATE_VAR and State prompt choice are set to Michigan and both the CITY_VAR and City prompt are set to nothing (blank option)
    2) User selects Detroit as one of the cities in the City prompt and clicks the GO button.
    3) On page load, the STATE_VAR presentation variable and corresponding State prompt are set to Michigan, but now the CITY_VAR and City prompt are now set to Detroit
    4) User selects a different option in the State prompt, say Nebraska, and clicks on the GO button
    5) On page load, the STATE_VAR presentation variable and corresponding State prompt are now set to Nebraska, however, the default selected option in the City prompt and corresponding CITY_VAR presentation variable are still Detroit though the choice list now contains different values.
    Is there anyway to reset both the CITY_VAR and City prompt to the default nothing (None) selected state, essentially resetting the presentation variable?
    Thanks.

    i am afraid .. you wont be able to achieve this...
    The best thing that you can do is to check the constrain checkbox in the city prompt..
    Thanks
    Ashish

  • Bind Variable in SELECT statement and get the value  in PL/SQL block

    Hi All,
    I would like  pass bind variable in SELECT statement and get the value of the column in Dynamic SQL
    Please seee below
    I want to get the below value
    Expected result:
    select  distinct empno ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    100, HR
    select  distinct ename ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    TEST, HR
    select  distinct loc ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    NYC, HR
    Using the below block I am getting column names only not the value of the column. I need to pass that value(TEST,NYC..) into l_col_val variable
    Please suggest
    ----- TABLE LIST
    CREATE TABLE EMP(
    EMPNO NUMBER,
    ENAME VARCHAR2(255),
    DEPT VARCHAR2(255),
    LOC    VARCHAR2(255)
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (100,'TEST','HR','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (200,'TEST1','IT','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (300,'TEST2','MR','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (400,'TEST3','HR','DTR');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (500,'TEST4','HR','DAL');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (600,'TEST5','IT','ATL');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (700,'TEST6','IT','BOS');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (800,'TEST7','HR','NYC');
    COMMIT;
    CREATE TABLE COLUMNAMES(
    COLUMNAME VARCHAR2(255)
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('EMPNO');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('ENAME');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('DEPT');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('LOC');
    COMMIT;
    CREATE TABLE DEPT(
    DEPT VARCHAR2(255),
    DNAME VARCHAR2(255)
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('HR','HUMAN RESOURCE');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('MR','MARKETING');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
    COMMIT;
    PL/SQL BLOCK
    DECLARE
      TYPE EMPCurTyp  IS REF CURSOR;
      v_EMP_cursor    EMPCurTyp;
      l_col_val           EMP.ENAME%type;
      l_ENAME_val       EMP.ENAME%type;
    l_col_ddl varchar2(4000);
    l_col_name varchar2(60);
    l_tab_name varchar2(60);
    l_empno number ;
    b_l_col_name VARCHAR2(255);
    b_l_empno NUMBER;
    begin
    for rec00 in (
    select EMPNO aa from  EMP
    loop
    l_empno := rec00.aa;
    for rec in (select COLUMNAME as column_name  from  columnames
    loop
    l_col_name := rec.column_name;
    begin
      l_col_val :=null;
       l_col_ddl := 'select  distinct :b_l_col_name ,pr.dept ' ||'  from emp pr, dept ps where   ps.dept like ''%IT'' '||' and pr.empno =:b_l_empno';
       dbms_output.put_line('DDL ...'||l_col_ddl);
       OPEN v_EMP_cursor FOR l_col_ddl USING l_col_name, l_empno;
    LOOP
        l_col_val :=null;
        FETCH v_EMP_cursor INTO l_col_val,l_ename_val;
        EXIT WHEN v_EMP_cursor%NOTFOUND;
          dbms_output.put_line('l_col_name='||l_col_name ||'  empno ='||l_empno);
       END LOOP;
    CLOSE v_EMP_cursor;
    END;
    END LOOP;
    END LOOP;
    END;

    user1758353 wrote:
    Thanks Billy, Would you be able to suggest any other faster method to load the data into table. Thanks,
    As Mark responded - it all depends on the actual data to load, structure and source/origin. On my busiest database, I am loading on average 30,000 rows every second from data in external files.
    However, the data structures are just that - structured. Logical.
    Having a data structure with 100's of fields (columns in a SQL table), raise all kinds of questions about how sane that structure is, and what impact it will have on a physical data model implementation.
    There is a gross misunderstanding by many when it comes to performance and scalability. The prime factor that determines performance is not how well you code, what tools/language you use, the h/w your c ode runs on, or anything like that. The prime factor that determines perform is the design of the data model - as it determines the complexity/ease to use the data model, and the amount of I/O (the slowest of all db operations) needed to effectively use the data model.

  • Getting error after putting variable in select statement

    Hi All,
    Kindly help me with Pl/sql code
    here i'm trying to put variable in select statement ....
    I successfully put the Yr and Mnth ..but getting error for loop variable "i"
    Here i'm getting error that too because of " i" only-->TRIM(UPPER(TO_CHAR(TO_DATE(i||'-'||Mnth||'-'||Yr,'dd-Mon-YYYY'),'DAY')))
    Please find the full code below.
    Declare
    Yr number not null:=2010;
    Mnth varchar2(20) not null:='Jun';
    v_val number:=0;
    begin
    for i in 1..2 loop
    case i
    SELECT count(*) into v_val
    FROM DUAL
    WHERE TRIM(UPPER(TO_CHAR(TO_DATE(i||'-'||Mnth||'-'||Yr,'dd-Mon-YYYY'),'DAY')))
    in (UPPER('Monday'),UPPER('Tuesday'),UPPER('WEDNESDAY'),UPPER('THURSDAY'),UPPER('friday'))
    end case;
    end loop;
    end;

    Declare
      Yr number not null:=2010;
      Mnth varchar2(20) not null:='Jun';
      v_val number:=0;
    begin
      for i in 1..2 loop
      SELECT count(*) into v_val
      FROM DUAL
      WHERE TRIM(UPPER(TO_CHAR(TO_DATE(i||'-'||Mnth||'-'||Yr,'dd-Mon-YYYY'),'DAY')))
      in (UPPER('Monday'),UPPER('Tuesday'),UPPER('WEDNESDAY'),UPPER('THURSDAY'),UPPER('friday'));
    end loop;
    end;

  • Design Studio - put initial state on chart

    Hello,
    I work with DS1.3 SP01, and I have a problem with putting initial state on chart after RESET action from a button.
    Initially I was inspired with Zahid’s post http://scn.sap.com/thread/3566300, but it’s seems to be other scenario and needs.
    I this case, I have a tabstrip with 5 pages, where each presents pie charts. Once we click on one of the chart, a crosstab is displayed for each of them. When I click on button RESET, whatever a page is currently displayed I want to clear all filters for all my charts. During a RESET I hide all cross tabs – so I don’t have to liberate datasources linked to crosstabs.
    My code for RESET button seems to work quite ok, cause it gives me a chart with initial state, ready for next selections…. in condition that I do not click on RESET just after 1st click on pie chart.
    For example :
    - on page 1 : click on pie chart 1, then I go to the page 2/ click on chart 2  - come back to page 1 => click reset (chart 1 - initial state, chart 2-selection is highlighted)
    or
    - on page 1 : click on pie chart, then I add additional filter from panel_filter for all charts => click reset, works fine for all charts.
    If I try to click on RESET just after an action of click on the pie chart, I would say it stays locked, and my RESET do not put him in initial state. But If I click again, it works ! I would like to understand what is happening just after click on pie chart, why the state of chart seems to be "locked" ?
    My code:
    DS_1.clearAllFilters();
    CHART_1.getSelectedMember("XEMPLOYEE").internalKey;
    DS_2.clearAllFilters();
    CHART_2.getSelectedMember("XCOUNTRY").internalKey;
    // put invisible all cross tab from different pages                
    CROSSTAB_1.setVisible(false);      
    Thank you
    Beata

    Hi Beata,
    why you need those bold lines?
    My code:
    DS_1.clearAllFilters();
    CHART_1.getSelectedMember("XEMPLOYEE").internalKey;
    DS_2.clearAllFilters();
    CHART_2.getSelectedMember("XCOUNTRY").internalKey;
    // put invisible all cross tab from different pages               
    CROSSTAB_1.setVisible(false);
    I do not see reason for those. I suspect, when you clear the filters, those lines can cause some issues as the clearfilters call is for sure triggering event to chart and then the selection is cleared.

  • How can I set the initial state of the PGCTR0 out pin?

    Hi,
    I have a 6115 board, and I am trying to generate a pulse train on PGCTR0 with an external clock. The external clock signal is connected to PFI1 and the PGCTR0 is gated through PFI0. The PGCTR is reset at the end of each run.
    The problem is that the initial state of the PGCTR out pin changes from run to run, but I'd like it to stay high after reset. Any help is appreciated. THanks.
    feng

    Hi Feng,
    The default output state of your counters should be high depending on your board. If you run a counter application, and the line ends in a low state it will stay low. One way to change the output state is to not only reset the counter but reset the board (see knowledge base linked below). The other way is to treat it like a digital line (see second link below). This is probably the best method. This method should allow you to read the value and change it using a couple software calls. Instead of disabling the counter, I would reset the counter since you just want to reset the state. This method is also a decent workaround because you are resetting the counter anyway. Hope that helps. Have a good day.
    Default State of Counter Output Lines
    on E Series Data Acquisition Devices
    http://digital.ni.com/public.nsf/websearch/008995633E33E47486256B5F00034436?OpenDocument
    Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line http://digital.ni.com/public.nsf/websearch/B8A49A4E33F38AB686256B610061DC6D?OpenDocument
    Ron

  • HT5312 I am trying to reset my security questions, I cannot locate the option for a rescue email address with My Apple Id. When I click on the button to reset the security questions, it states it is sending an email to the primay email address, but it doe

    I am trying to reset the Security Questions as I have forgotten them, when I have logged into My Apple Id, and click on the button to reset the Security Questions, it states it is sending an email to the Primary Email address. I do not have the option to input a Rescue Email address, the only option I have is to input an Alternate Email address, which I have done so.
    Also when I have tried to book an appointment throuth Online Support, I have not successful, I have rung a telephone number provided by the Mac Store in Perth, Australia and the reply provided is that we are closed. I was given to understand that Apple provided 24/7 Support to their users.

    Hot N Spicy wrote:
    I am trying to reset the Security Questions as I have forgotten them,
    Forgotten Security Questions / Answers...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers

  • Ensuring that variable is initialized only once in a movieclip

    Guys, what is the way to ensure that variable is initialized only once in each instance of a movieclip?
    I tried:
    if (!isLocked)
        trace("setting up isLocked variable");
          var isLocked:Boolean = new Boolean(false);//I need this variable to be initialized only once for each instance of this movieclip and to value of false
    but this doesn't work.
    Any ideas?

    Note that new Boolean() makes zero sense. And this is the beef I have with the convention of checking for existence with !someVariable. Because inexperienced programmers will use that logic with Boolean (which always exists if you're checking it, but is either true or false) or Numbers, which might exist with a value of zero and will make that expression false.
    Try
    if (!this.hasOwnProperty('isLocked')) {
         var isLocked:Boolean = true;
    This may not work because of variable hoisting in AS. It's hard to know what the addFrameScript code will do to this in the background.
    Note that you can avoid this by using a proper Class with accessors and mutators and avoiding timeline code.

Maybe you are looking for

  • Runtime error R6034, itunesHelper.exe and the missing library MSVCR80.dll

    I made the mistake of upgrading to the new version of itunes and I appeared the following errors: - Runtime Error R6034 on ituneshelper.exe - Library MSVCR80.dll not found - Error 7 (windows error 126)   I tried to install and uninstall as they say a

  • Urgent expalantion reqired about foreign keys

    we are doing data migration project and we have get data from different regions data in flat files, but we have problem below like: i am facing a problem to declare unique constraints, because in some files column should be in number data type and sa

  • Purchased a song but can't find it

    I recently purchased a song through ITunes, which successfully completed. But after checking my music library it wasn't there, or even checking under "Purchased" tab and it wasn't their either. So I tried redownloading again and it says I can not dow

  • Not printing after 10 pages

    Hello All, We have spool request which has 314 pages, while sending the request to output it is printing only first 10 pages. While printing from frontend , it is showing error message as (6:00:46 AM) Job 00Pq4aEG.C96 for user CHINTAKG queued. (6:00:

  • How to create a new customer using XD02?

    Hi , My requirement is to create a new customer in XD02 when I change the customer name or address of existing customer and not to update the original customer. ex.)  1. change the information of customer code 'F001'  in XD02.           2. save 'F001