How to continue timer from prevous state?

Hi guys,
I have some question regarding on the timer. I doing a project called car washing system. Basically every selection will have limited function.
Example: $2 wash: Heavy Wash (10 sec) -> Air Dry (15 sec )-> Exit
Example: $5 wash: Main Wash (10sec) -> Soap(10sec) -> Heavy Wash (10sec) -> Air Dry (15 sec) -> Exit
So for every state the timer run until it reach the timing, the timer will pause and next state the timer will continue. I'm using toggle switch so when i toggle up the timer, it will start running until it reach the stage and pause for next toggle switch up to continue. But currently there is some error which i toggle up the timer get reset.

You may also want to post questions over on the Certification forum.
http://forums.ni.com/t5/Certification/bd-p/Certification
I'd also recommend checking out the elapsed timer express VI.  It doesn't have a pause/resume feature but it doesn't take much to add it.  I started from the express VI and just added this functionality.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • How to subtract time from dateTime in xquery?

    How to subtract time from dateTime in xquery??
    In ALDSP i tried to use the function xf:add-days but it is showing an error saying invalid function name. I think this namespace is not valid for ALDSP. Is there is any way to add this function in ALDSP???

    xquery functions and operators documentation is here :
    http://www.w3.org/TR/xpath-functions/
    It sounds like you want to ..
    op:subtract-dayTimeDuration-from-dateTime
    this is not an xquery function that you can call, it is an xquery operation defined by the specification
    I believe you can simply use the '-' operator to use that operation.
    <newDateTime>
    { $myDateTime - $myTime }
    </newDateTime>

  • How to create outline from perfstat.stats$SQL_PLAN table

    How do I create outline (Plan stability in 10gR2database) from perfstat.stats$SQL_PLAN table?
    Current V$SQL_PLAN does not contain good but but week older snapshots have good plan.
    I can't modify query, it's vendor query so I need to create outline/plan stability.
    Thanks for help.

    user7478143 wrote:
    Thanks for reply.
    I'm not saying I find it out doc but here is situation.
    I have query which change execution plan week ago.
    I have perfstat enable and I found out good execution plan from perfstat.stat$SQL_PLAN view.
    If it's our query I can modify query and able to get good execution plan but it's vendor supplied query (which is Oracle - it used to be Portal now Oracle acquired it) so I can't modified it.
    All I'm trying to do is how do I generate good plan and assigned to vendor query's hash_value/sql_id.If DBMS_ADVANCED_REWRITE is not an option for you and you want to use an outline, there is one significant problem. The Statspack captured data does not include quite enough information, in particular the OTHER_XML column, and the access predicates. So, what can you do? Note that this script is from page 214 of the book that I co-authored. Let's say you execute this SQL statement:
    SQL> SELECT
      2    SQL_ID,
      3    COUNT(DISTINCT PLAN_HASH_VALUE) C
      4  FROM
      5    PERFSTAT.STATS$SQL_PLAN_USAGE
      6  GROUP BY
      7    SQL_ID
      8  HAVING
      9    COUNT(DISTINCT PLAN_HASH_VALUE)>1;
    SQL_ID         C
    0fr8zhn4ymu3v  2
    0h6b2sajwb74n  2
    1gu8t96d0bdmu  2
    39m4sx9k63ba2  2
    4b57myt9mpz37  3
    52tr7ay85qwn0  5
    …Interesting, SQL_ID has 2 different execution plans, let's take a look at the execution plans:
    SQL> SET LINESIZE 150
    SQL> SET PAGESIZE 10000
    SQL> SPOOL StatspackPlan.txt
    SQL> SELECT /*+ ORDERED */
      2    T.*
      3  FROM
      4    (SELECT DISTINCT
      5       PLAN_HASH_VALUE
      6     FROM
      7       PERFSTAT.STATS$SQL_PLAN_USAGE
      8     WHERE
      9       SQL_ID='0fr8zhn4ymu3v'
    10     ORDER BY
    11       PLAN_HASH_VALUE) SPU,
    12    TABLE(DBMS_XPLAN.DISPLAY(
    13      'PERFSTAT.STATS$SQL_PLAN',
    14      NULL,
    15      'TYPICAL -PREDICATE -NOTE',
    16      'PLAN_HASH_VALUE='||SPU.PLAN_HASH_VALUE)) T;
    | Id  | Operation                   | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |*  0 | SELECT STATEMENT            |            |       |       |     2 (100)|          |
    |*  1 |  TABLE ACCESS BY INDEX ROWID| OPQTYPE$   |     1 |    27 |     2   (0)| 00:00:01 |
    |*  2 |   INDEX RANGE SCAN          | I_OPQTYPE1 |     1 |       |     1   (0)| 00:00:01 |
    | Id  | Operation             | Name     | Cost  |
    |*  0 | SELECT STATEMENT      |          |       |
    |*  1 |  SORT ORDER BY        |          |     0 |
    |*  2 |   TABLE ACCESS CLUSTER| OPQTYPE$ |       |
    |*  3 |    INDEX UNIQUE SCAN  | I_OBJ#   |       |
    --------------------------------------------------As can be seen by the above, in one case the I_OBJ# index was used, and in another case the I_OPQTYPE1 index was used. Let's assume that I_OPQTYPE1 is the most efficient access path, so a hint like this needs to be inserted (assuming that the table does not have an alias in the SQL statement:
    /*+ INDEX(OPQTYPE$ I_OPQTYPE1) */Now what (obviously, we would not want to actually fix the above plan for an internal SQL statement)? Take a look at the following, which shows how to build a private outline for the unhinted version of the SQL statement, an outline for a hinted version, and then swap the resulting outlines, followed by building a public outline from the hacked outline:
    http://hoopercharles.wordpress.com/2009/12/18/tracking-performance-problems-inserting-a-hint-into-sql-in-a-compiled-program/
    Charles Hooper
    Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • How to get Time from Different Work Station on the Network

    Hi,
    How do I get time from different work station on the network using its ip:port etc.
    Lets say, my main server-side Java application is running on a work station 123.12.123.1:1527,
    the client-side applications are accessing it using above IP.
    what I wanna do is, use the time of 123.12.123.1 machine throughout the application, not client local time.
    Appreciated..

    Ok, this network service on IP:Port is working for me, I hope this is the best way of doing it.
    In server application, I have this
    package RenameItToYourOwnPackage;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    import java.text.SimpleDateFormat;
    public class ServerSocketExample implements Runnable {
        private ServerSocket server;
        private int port = 7777;
        Socket socket;
        public void run() {
            try {
                System.out.println("Waiting for client message");
                server = new ServerSocket(port);
                while (true) {
                    socket = server.accept();
                    // Read a message sent by client application
                    ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
                    String clientMessage = (String) ois.readObject();
                    System.out.println("Message sent by client: " + clientMessage);
                    // send current datetime to client
                    ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
                    oos.writeObject(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date()));
                    ois.close();
                    oos.close();
                    socket.close();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
    }In the client application I have
    package RenameItToYourOwnPackage;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.InetAddress;
    import java.net.Socket;
    import java.net.UnknownHostException;
    public class ClientSocketExample {
        static String dateTimeString;
        public ClientSocketExample() {
        public static String getServerDateString() {
            try {
                // Create a connection to the server socket on the server application
                InetAddress host = InetAddress.getByName("127.0.0.1");
                Socket socket = new Socket(host.getHostName(), 7777);
                // Send a message to the server application
                 ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
                 oos.writeObject("Send me today's timestamp as string");
                // Read the response by server application
                ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
                dateTimeString = (String) ois.readObject();
                //System.out.println("Message sent by server: " + message);
                ois.close();
                oos.close();
            } catch (UnknownHostException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            return dateTimeString;
    }And I run the service on the server-side with
            new Thread(new ServerSocketExample()).start();On the client-side I receive the date with
            System.out.println("DateTime on Server : " + ClientSocketExample.getServerDateString());Edited by: nkamir on Sep 13, 2010 2:53 PM

  • How to subtract Time from Sysdate

    Hello,
    I want to subtract time from sysdate and get the sysdate with time.
    Example : = (Sysdate with time)03-mar-2002 16:40:55 - 8 (hours). The result should be like :03-mar-2002 08:40:55
    How to write a query for this?.
    Please let me know as soon as possible.
    Thanks,
    Ravi.

    Hi Ravi...
    SYSDATE includes time, TRUNC(SYSDATE) does not include time.
    If you subtract these two, you'll get a positive number of 1.00 or less which is the fraction of a day. For instance high noon would have a fraction of 0.50000. 12:01 p.m. would be 0.50000 + (1/(24*60)), or 0.50069444....
    If you want to set the clock back, by calculating a "date" that is 8 hours less than the SYSDATE, then SYSDATE - (8/24) will do that. This will work even if SYSDATE was something like 2 a.m., because it will then set it to 6 p.m. of the day before the day in SYSDATE.
    If you want to set a "date" to a specific time on the day of SYSDATE, then calculate the fraction for that time and add it to the TRUNC(SYSDATE). High noon would be TRUNC(SYSDATE) + 0.5.
    SELECT TO_CHAR(TRUNC(SYSDATE)+0.5,'DD-MON-YY HH:MI:SS am') AS NOON FROM DUAL;Hope this helps...
    Larry Johnson

  • How to get time from Date

    I have a Column that is defined as "DATE".it also Contains Time.........
    I want to Get the Time only....so when i am using this
    to_date(var_date,'hh12:mi:ss PM'),it is giving me date also and when i am using this
    to_char(var_date,'hh12:mi:ss PM') then it is giving me all values similar to one of the top values in Column....
    Then i Used EXTRACT function as
    Select EXTRACT(HOUR FROM VAR_DATE).......
    THEN IT THRWOING ERROR.......INVALID EXTRACT FIELD FOR EXTRACT SOURCE........
    pLZ HELP HOW TO GET TIME...................................ONLY WITH AM AND PM......
    Thanks in Advance

    Hi,
    to_char function should give the result as expected.
    SQL> select to_char(sysdate, 'hh12:mi:ss PM') from dual ;
    TO_CHAR(SYS
    11:39:16 AM
    SQL> select to_char(sysdate, 'hh12:mi:ss AM') from dual ;
    TO_CHAR(SYS
    11:39:32 AM
    SQL> select to_char(sysdate,'hh:mi:ss') from dual ;
    TO_CHAR(
    11:40:04
    SQL> select to_char(sysdate,'hh:mi:ss am') from dual ;
    TO_CHAR(SYS
    11:40:18 am
    SQL> select to_char(sysdate,'hh:mi:ss pm') from dual ;
    TO_CHAR(SYS
    11:40:31 am
    Thanks,
    Siva

  • How 2 prevent time from changing on leopard and vista?

    if i maintain successive boots into the same OS on my macbook, the time is shown correctly, whereas on booting into another OS changes the time. how to prevent this from happening?
    Neerav

    From what my brother says says about his set-up (he boots into 64 bit Vista periodically), apparently you can't. My understanding is that the two systems do a different version of time at boot, Vista uses a GMT setting in bios, and I think Mac use a local time in EFI. Anyway, the result is several hours difference between the two. I don't use Boot Camp, but I would think if you are on a network with Internet access, you should be able to have the clock reset automatically using System Prefs->Date and Time, and check the box at the top to automatically set the time from the Apple time server.
    Francine
    Francine
    Schwieder

  • How to retrieve value from insert statement

    hi,
    how can i get a certain value from insert statement and store it in a variable.
    suppose i am inserting emp_no , emp_name , emp_salary to employee table
    and i want to store the emp_name in a variable for other processing,
    how can i accomplish this ? i'm guessing that i have to use trigger,
    but dont know the procedure .
    any help will be greatly appreciated
    thanks

    insert into <table> valiues (....) returning <expression> into <variable>
    You could and should have found this using the SQL Language reference manual
    or
    http://www.morganslibrary.org/reference/insert.html
    Sybrand Bakker
    Senior Oracle DBA

  • How bring up automatically from Broken state

    Iam using Reports 8i on sun solaris 5.8
    can any one help me how to bring up the database from broken state to normal state automatically from the command line

    Your site was built using tables, whose sizes are defined in your site.
    If we look at your first table definition, we can see:
    <table width="861" height="1449" border="3" cellpadding="0" cellspacing="0" bordercolor="#868787">
    Your table has a width of 861 pixels and an overall height of 1449 pixels. Anything you put into that overall box must fit those dimensions, else
    it won't be visible. Anything you add above it will push everything down. You can redefine your sizing to let you edit more inside of the table elements.
    This is why, when you type in more text, things act weird. If you are in Dreamweaver, you must find the right cell to put your text into and then enter
    text there. Unfortunately, this is going to push things around, which were all lined up using tables. And this gets everything offset with respect to
    everything else in your website.
    And that is why everyone is saying, "Start Over!"
    I just inherited a website that has been put together using tables. I'm going to have to expend considerable effort in rewriting the entire design of the
    website because of that. because everything I intend to add to the pages on the site is going to need to be deconstructed in order to get it to work
    properly if I'm adding text and pictures that need to line up with each other.
    You need something done quick and dirty and the only way I can recommend you do that is to use Dreamweaver to show you the tables you have
    and put what you need in a new table that is defined above or below the tables you all ready have defined. Do that and then get back to someone here
    who knows how to make a website correctly to clean up your entire website and make it editable -- which will cost you some money, but it will be
    money well-spent.
    I like to quote this maxim: Good, Fast, Cheap. Pick any two. This works for website design. You can get it fast and cheap, but it won't be good. I
    think you may have chosen that route.

  • How to assign value from insert statement to variable from a trigger

    Hi,
    I got this really annoying problem and I don't know if I am doing it correctly.
    I have a BEFORE INSERT trigger on a table. When someone executes an insert statement I want to grab the value of a column from that statement and assign it to a variable and then do stuff with it. I'm stuck on the assignment.. look below..
    CREATE OR REPLACE TRIGGER CARS.geotest2_trigger
    BEFORE INSERT ON CARS.GEO_TEST2
    FOR EACH ROW
    DECLARE
    v_chainkey nchar(32);
    v_chainkey2 nchar(32);
    not_exists EXCEPTION;
    BEGIN
    :NEW.CHAINKEY := v_chainkey;
    SELECT GEO_TEST.CHAINKEY INTO v_chainkey2 FROM GEO_TEST WHERE GEO_TEST.CHAINKEY = v_chainkey;
    IF v_chainkey2 = '' or v_chainkey2 is null THEN
    RAISE not_exists;
    ELSE
    INSERT INTO GEO_TEST2 VALUES(:NEW.CHAINKEY, :NEW.BLA, :NEW.FOO);
    END IF;
    EXCEPTION
    WHEN not_exists THEN
    RAISE_APPLICATION_ERROR(-20010, 'Chainkey does not exist in parent table GEO_TEST');
    END;
    I keep getting this error
    Error: ORA-04098: trigger 'CARS.GEOTEST2_TRIGGER' is invalid and failed re-validation
    SQLState: 42000
    ErrorCode: 4098

    It isn't assigning because v_chainkey is not at the left hand side of the assignment statement.
    test@ORA10G>
    test@ORA10G>
    test@ORA10G> declare
      2    x  number := 5;
      3    y  number;
      4  begin
      5    x := y; -- does not assign anything to y; assigns NULL to x,
      6            -- because y is NULL at this point
      7            -- so, essentially the value 5 of x is *LOST* now
      8    dbms_output.put_line('x = '||x);
      9  end;
    10  /
    x =
    PL/SQL procedure successfully completed.
    test@ORA10G>
    test@ORA10G>
    test@ORA10G>In any case, here's what you are probably looking for:
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> drop table geo_test;
    drop table geo_test
    ERROR at line 1:
    ORA-00942: table or view does not exist
    test@ORA10G> drop table geo_test2;
    drop table geo_test2
    ERROR at line 1:
    ORA-00942: table or view does not exist
    test@ORA10G>
    test@ORA10G> create table geo_test (chainkey nchar(32));
    Table created.
    test@ORA10G> insert into  geo_test (chainkey) values ('a');
    1 row created.
    test@ORA10G> insert into  geo_test (chainkey) values ('');
    1 row created.
    test@ORA10G>
    test@ORA10G> create table geo_test2 (chainkey nchar(32), bla number(1), foo number(1));
    Table created.
    test@ORA10G>
    test@ORA10G>
    test@ORA10G> CREATE OR REPLACE TRIGGER geotest2_trigger
      2  BEFORE INSERT ON GEO_TEST2
      3  FOR EACH ROW
      4  DECLARE
      5    v_chainkey2  nchar(32);
      6    not_exists   EXCEPTION;
      7  BEGIN
      8    SELECT GEO_TEST.CHAINKEY INTO v_chainkey2 FROM GEO_TEST WHERE nvl(GEO_TEST.CHAINKEY,'~') = nvl(:new.chainkey,'~');
      9    IF v_chainkey2 is null THEN
    10      RAISE not_exists;
    11    END IF;
    12  EXCEPTION
    13    WHEN not_exists THEN
    14      RAISE_APPLICATION_ERROR(-20010, 'Chainkey does not exist in parent table GEO_TEST');
    15  END;
    16  /
    Trigger created.
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> insert into geo_test2 (chainkey,bla,foo) values ('b',1,1);
    insert into geo_test2 (chainkey,bla,foo) values ('b',1,1)
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "TEST.GEOTEST2_TRIGGER", line 5
    ORA-04088: error during execution of trigger 'TEST.GEOTEST2_TRIGGER'
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> insert into geo_test2 (chainkey,bla,foo) values (null,1,1);
    insert into geo_test2 (chainkey,bla,foo) values (null,1,1)
    ERROR at line 1:
    ORA-20010: Chainkey does not exist in parent table GEO_TEST
    ORA-06512: at "TEST.GEOTEST2_TRIGGER", line 11
    ORA-04088: error during execution of trigger 'TEST.GEOTEST2_TRIGGER'
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> insert into geo_test2 (chainkey,bla,foo) values ('a',1,1);
    1 row created.
    test@ORA10G>
    test@ORA10G>
    test@ORA10G>pratz
    I think the sole purpose of that "not_exists" exception is this -
    If you try to insert a NULL value for GEO_TEST2.CHAINKEY, then this trigger will throw an error even if at least one NULL value exists in GEO_TEST.CHAINKEY column.
    Not sure if that's something that you wanted.
    Message was edited by:
    pratz

  • How to use time from external source as signature time?

    Hi,
    I have a PubSec based acrobat X plugin for signature creation and verification. So far i knew that acrobat was using my local system time to get signing time and saved that time in the signature dictionary. Now i have to get the signing time from an NTP server, which is different from my local system time, and I want to put this time in the signingTime (M) of the Signature dictioniary. But so far i am unable to modify the (M) dictionary value.
    Can you please guide me to achieve this goal?
    thanks

    thanks for your prompt reply.
    actually, using timestamps is not an option. Machine time can be changed and my requirement is to use NTP time during signing and set this time as signing time in the signature dictionary. I have tried adding the time in M dictionary in SigGetSigProperties() and SigGetSigValue() callbacks, but it has no effect.
    My question is, is it possible to use time other, than machine time, as signing time in a signature (in signature dictionary) ?
    If yes, then can i achieve this, a hint or a point in the right direction can suffice.
    if no, then is this limitation part of the new plugin framework? because as far as i remember, it was allowed in digsig plugins.
    Finally, can i achieve my goal in an unorthodox way?
    thanks

  • How do I change from united states to uk? I can't set up account cos I can't put in an area code,

    How do I change from us to uk? Or what do I put in the area code box to sign up a new apple ID? I can now log into my iPad but can't download any apps

    Order 1 online https://explore.ee.co.uk/Order-a-new-SIM for £10.

  • How to prevent timer from repeats

    hello there i've made a countdown timer
    and i want it when it finishes counting till 0 not repeating from the beginning but do some action
    i uesd the method
    timer.setRepeats(false);but it stops the timer from counting
    i'm using javax.swing.timer;
    and here is the code:
    import java.math.*;
    import java.util.*;
    import java.text.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class Timer1 extends JFrame {
       JComboBox combo = new JComboBox();
       JButton start = new JButton("Start");
       JButton stop = new JButton("Stop");
       JButton clear = new JButton("Clear");
       JTextField time = new JTextField("");
       javax.swing.Timer timer;
       SimpleDateFormat timef = new SimpleDateFormat("HH:mm:ss",Locale.getDefault());
       long startT,stopT;
       Date date=new Date();
       public Timer1() {
          super("Timer");
          timef.setTimeZone(TimeZone.getTimeZone("GMT"));
          addWindowListener(new WindowAdapter() {
             public void windowClosing(WindowEvent ev) {
                dispose();
                System.exit(0);
          setBounds(10,10,400,200);
          getContentPane().setLayout(null);
          start.setBounds(10,30,100,24);
          start.setBackground(Color.green);
          stop.setBounds(10,60,100,24);
          stop.setBackground(Color.red);
          combo.setBounds(10,90,100,25);
          combo.setBackground(Color.blue);
          clear.setBounds(150,60,100,24);
          clear.setBackground(Color.green);
          combo.addItem("1 Hour");
          combo.addItem("2 Hours");
          combo.addItem("3 Hours ");
          combo.addItem("4 Hours");
          combo.addItem("5 Hours");
          combo.addItem("6 Hours");
           combo.addItem("7 Hours");
          combo.setSelectedIndex(0);
          start.addActionListener(new ActionListener() {
             public void actionPerformed( ActionEvent e ) {
                try {
                     startT=(combo.getSelectedIndex()+1)*60*60*1000;  // change if combo box values changed
                catch (Throwable fe) {
                   startT=0;
                startT+=System.currentTimeMillis();
                timer.start();
          stop.addActionListener(new ActionListener() {
             public void actionPerformed( ActionEvent e ) {
                timer.stop();
          clear.addActionListener(new ActionListener() {
             public void actionPerformed( ActionEvent e ) {
                time.setText("");
          time.setBounds(150,30,100,24);
          time.setOpaque(true);
          time.setBackground(Color.pink);
          getContentPane().add(stop);
          getContentPane().add(start);
          getContentPane().add(time);
          getContentPane().add(combo);
          getContentPane().add(clear);
          timer = new javax.swing.Timer(1000, new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                stopT = System.currentTimeMillis();
                time.setText(timef.format(new Date(startT-stopT)));
          setVisible(true);
       public static void main (String[] args) {
          UIManager.put("Label.font" ,new Font("Times New Roman",0,23));
          UIManager.put("Button.font",new Font("Arial",1,21));
          new Timer1();
    }

    simply the user chooses a time from the combobox say
    1 hour
    and then hits the start button so the timer begins to
    countdown.
    my problem here is i want when the countdown timer
    reaches 0 hour 0 minute 0 second the frame exit (or
    any action)not repeating the default time .
    got it?Ah, yes, now I understand. So when the user chooses an interval, 1 hour in this case, you calculate the number of seconds that make up that interval. (Doesn't have to be seconds, depends on the granularity of the choices) Then you count down that many seconds like I described before. Each time the timer ticks, decrement the counter, and also convert the number of second left back into hours, minues, seconds and display that.
    So the counter becomes the data model that everything's based on, and you format it for display each tick.
    startTimer() {
      int interval = // get the interval selected from the combobox
      int seconds = // convert interval to seconds
      start timer with 1 second period
    actionPerformed() {
       seconds--;
       if (seconds == 0) {
          stop timer
          do whatever we were waiting for
       else {
           convert seconds to HH:MM:SS format and display in gui
    }

  • How to continue playback from marker in Garageband

    I would like to pause my track in Garageband and then replay from where I left off. Thank you.

    In GarageBand '11 and 10.0 use the spacebar to start and stop playing.
    It will continue play from the position where you stopped.

  • How to convert time from (hh:mm:ss) to (hhmmss) in CSV file

    Hi Experts,
    I have a CSV file where there is time column which displays time like hh:mm:ss
    But the input I should give for loading the data is hhmmss
    The amount of records that I have is more than 2 lakhs. I tried many ways to convert the time but I'm unsuccessful.
    Can anyone tell me how do I convert the format please.
    Thanks

    Hi,
    You can create a custom infoobject length 6 (say mytime) to read the data from csv file.
    In the field routine assign the 6 character length info object to the required time IO(system time) with routine.
    Inside the field routine...
    result = source_fields-mytime.
    The system will take care of conversion as per the user master setting.
    Thanks,
    Jugal.

Maybe you are looking for

  • When trying to update, I get the message: Account not in this store,...switch to the Canadian store.  How do I do that?

    When trying to update apps, I get the message:  "Account not in this store,...switch to the Canadian store before purchasing"  How to I switch, and how did it even get changed to US store?  I don't remember changing anything, and I used to be able to

  • Problem while changing the query of the field in Oracle apps 11.5.10

    Hello All, Requirement: User want to change the query of the LOV attached to Ordered item field on Line items tab on the Sales order form in Order managment Block name = 'LINE' Field name = 'ORDERED_ITEM_DSP' LOV attached to this field in FMB: ITEMS

  • How to save requisitions without using E-Recruiting

    Hello All, Is there a way, to save requisitions data without using the E-Recruiting Web pages? Is there a Function module or a Class or a BAdI that I can use? We want to use a Interface that will send a flat fille with a lot of data and then to handl

  • Print Booklet in Indesign cs6 doesn't line up correctly

    Has anyone had luck with the "Print Booklet" tool to proof a multi-page catalog? I tried printing double sided on a Canon ir4035 and found that the front and rear sides didn't line up. I'm thinking of buying a nice new 12 x 18 color laser, and I want

  • Number of decimals

    Hi all, My requirement is : I have a CHAR field (FIELD1) which would have values like 23.45, 12.3456......... Now I have another field (FIELD2) which has the number of decimal places I need to care about. For example - If FIELD2 has '1' and FIELD1 ha