How to make a button than increse value

HY guys, I want to make two buttons which when they press increse or decrese value that one Eurorest between them. The value I guess must be in a list. But I have no idea how to make a list of numbers and, more important still, how to add the feature to increase value to the buttons. I use Blackberry 5.0

I know as tot creata a button for this:

ButtonField increase is new ButtonField ('increase', ButtonField.CONSUME_CLICK);.
Add (increase);

Can someone help me? If you can give me an example of code, I'd really apreciate.

If your list is to be static, you can set up a table, for example with an int]

If you want the list to be dynamic (in size), you can use a vector. It is only necessary to objects, you should encapsulate your numbers in a class. For int which is whole.

In your form (or), you can store the index of the currently selected number. When you click the button, you increase the index with + or - and load the new value of the vector/matrix.

Tags: BlackBerry Developers

Similar Questions

  • How to make a button to Flash a PagSeguro https page.

    How to make a button to Flash a PagSeguro https page. Programming they offer is:

    <! - FORMULARIO ALEXANDER PAGSEGURO INICIO - >

    " < target form = 'pagseguro' action = ' https://pagseguro.uol.com.br/checkout/v2/cart.html?action=Add "method ="post"> "

    <! - NAO EDITE OS COMANDOS DAS LINHAS ABAIXO - >

    < input type = "hidden" name = "itemCode" value = "AC0DD53E5757C9F774629F9937513499" / >

    " < input type ="image"src =" https://p.SIMG.uol.com.br/out/pagseguro/i/botoes/Pagamentos/120x53-comprar.gif "name ="submit"alt =" pay com PagSeguro - rapido e, grátis e seguro! » / >

    < / make >

    <! - FINAL FORM ALEXANDER PAGSEGURO - >

    So I spent this programming in HTML start, I see the white border in my page.

    I wrote a book and this schedule must send to a site secure for sale

    I'm developing my site in Flash 4 and now nc6. Export to Html

    www.escalasdecores.com.br

    Use the urlloader class:

    var urlLoader:URLLoader = new URLLoader();

    var urlRequest:URLRequest = new URLRequest ("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");

    var urlVariables:URLVariables = new URLVariables();

    urlVariables.itemCode = "AC0DD53E5757C9F774629F9937513499";

    urlRequest.data = urlVariables;

    urlRequest.method = URLRequestMethod.POST

    urlLoader.dataFormat = pouvez;

    urlLoader.load (urlRequest);

  • How to make the button to set the properties of auto-scale one of the Axes on the graphical indicator so I can turn on or off when I press on it. In the Labview web UI designer

    How to make the button to set the properties of auto-scale one of the Axes on the graphical indicator so I can turn on or off when I press on it.

    I need to change the adjustment vaguely Autoscale property for my graphic indicator. Can someone help me please.

    Thank you!

    Hello

    I have confirmed that there is currently no way programmatically enable/disable autoscaling for axes on the LabVIEW graphical indicator generator of the user Web interface. We noted this to possibly be implemented in the future; Sorry for the inconvenience.

  • How to make interactive buttons to rollover?

    How to make interactive buttons to rollover?

    Hello

    I think that you are looking to create a button that changes on the mouseover? for this, you can define States of button for each mouse, such as normal action, working capital etc.

    This video explains the steps:

    http://TV.Adobe.com/watch/Muse-feature-tour/Muse-define-object-States/

    Please let me know if I'm missing something.

    Thank you

    Sanjit

  • How to make a loop with variable values depending on where you are in the loop

    Hello

    I need loops / nested loops that choose different figures depending on where you are in the loop.

    The entire function must operate at times 'ml '. 'ml' is a dynamic figure.

    Loop 1 = while the loop is the first 12 iterations, "exconemp" must be equal to 100. 13-24 iterations, 'exconemp' to 102.5 equal, for 25-36 TI 105.06, 37-48, it will be 107.69. This must change each 12th iteration until he reached 'ml '. The calculation takes the value of the previous 'exconemp' and then that multiply by 0.025.

    Loop 2 = while the loop is in 120 first iterations, 'abc' should be equal to 0.015 and additional iterations should use 0.01. It should also work in a way to know if 'ml' is greater or less than 120 and work accordingly.

    My main problem is - this - how can I get loops to go like this:

    While the iteration is < 12, to do this, THEN take the final figure (12th iteration) and begin the 13-24, make this SO etc etc.

    How to produce a THEN statement? I can get the code to pick up the final values, but does not change along the way.

    I think I might better create an array for loop 1, but I'm not entirely convinced of that. Also, I think it would be better/more net if I can get "month total 1 ' and ' month 2 total ' in loops, but do not know how to do this.

    The values I need to produce (only 36 first shown):

    1-12 = 125.55, 251,65, 378.31, 505.52, 633.29, 761.63, 890.53, 1019.99, 1150.03, 1280.63, 1411.81, 1543.57
    13-24 = 1679.05, 1815.12, 1951.79, 2089.06, 2226.93, 2365.41, 2504.50, 2644.20, 2784.52, 2925.45, 3067.00, 3209.18
    25-36 = 3355.19, 3501.85, 3649.15, 3797.11, 3945.71, 4094.96, 4244.87, 4395.44, 4546.68, 4698.57, 4851.14, 5004.38

    var ml = 240 / / dynamic figure, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc;
    var fvee;
    MVT var;
    function myfunction() {}

    Loop 1

    While (ml < = 12) {}
    exconemp = exconem;
    // }
    so that {(ml > 12)
    exconemp = exconem * inf;
    //}

    end loop 1

    trace ("exconemp =", exconemp); employee contribution

    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    trace ('tree', tree);
    trace ("tec", tec);
    power = Math.pow (1 + 0.07, 1/12);

    Loop 2

    While (ml < = 120) {}
    ABC = 0.015;
    //}
    then {}
    ABC = 0.01;
    //}

    end loop 2

    fvis = power *(1-abc/12);
    trace ("fvis =", fvis);
    FVEE = tec * fvis;
    trace ("fvee =", fvee); month 1 total
    MVT = (CET + fvee) * fvis;
    trace ("MVT =", MVT); month 2 total
    //

    for (var i: Number = 0; i < ml; i ++)
    {
    MVT = (CET + MVT) * fvis;
    trace ("tfvloop =", MVT);
    }
    }

    I hope that I've explained this well enough.

    Thanks in advance.

    I think that will do it even if I don't quite get the numbers you posted.

    Stop();

    var ml = 48; figure dynamic, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc = 0.15;
    var fvee;
    MVT var;

    MyFunction();

    function myfunction()
    {
    exconemp = exconem;

    for (var index: uint = 1; index)<= ml;="">
    {
    trace(index + "--------------------------------");
               
    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    power = Math.pow (1 + 0.07, 1/12);
    fvis = power *(1-abc/12);
    FVEE = tec * fvis;
                       
    if(index == 1)
    {
    trace ("month 1 total =", fvee);
    }
    another if (index == 2)
    {
    MVT = (CET + fvee) * fvis;
    trace ("month 2 total =", MVT); month 2 total
    }
    on the other
    {
    MVT = (CET + MVT) * fvis; now that we're here the MVT auto perpetuates on himself
    trace ("months" + index + "total =", MVT); month total n
    }
                       
               
    If (index %12 == 0)
    {
    exconemp = exconemp *(1+inf);
    trace ("changed to exconemp to:" + exconemp);
    }
               
    If (index % 120 == 0)
    {
    ABC =. 01;
    trace ("changed abc to:" + abc);
    }
               
    }
    }

  • How to make a percentage of the value of a column and then insert this value in a column

    The table below should be the result I want to achieve. This means according to what value is in Column1 which corresponds to the percentage and what value is in Column2. Column1 will make a percentage of Column2. Like 80% of 1000 = 800, what will change in Column2 of 2nd record.

    Currently my code only select the current record and insert another copy that will duplicate the same record. But now I need to calculate and replace the values in column 2 according to the perentage. I did not have my code select here because I'm afraid of you all will get confused. I only put my code insert here, pls tell me how to make the formula in the code for the percentage of Column2 thanks.

    Orginal 1st record->                                                 column1 column2 
                                                                          
    80   1000  

    Inserted copy records which is 2nd record
    (what I want to achieved)   column1 column2 
                                                                          
    80   800


    My codes

     INSERT INTO table1 (column1, column2) VALUES (tran.column1, tran.column2);

    Did it using this, thanks.

    INSERT INTO table1 (column1, column2) VALUES (tran.column1, tran.column2 * tran.column1 / 100 );

  • AS2 how to make a button that moves every two seconds

    How can I make a button that moves every two seconds by itself in ActionScript2?

    For now, I have to use the command you (press), but what I really need, is the button in order to move randomly by itself every two seconds. For example:

    (insert the code here) {

    BC1._x = random (250)

    BC1._y = random (250)

    }

    Thank you!

    You can use the setInterval function repeated at specific time intervals.  Here is a link to a tutorial that explains how to use...

    http://www.republicofcode.com/Tutorials/Flash/setInterval/

  • How to make the button script in Illustrator?

    Dear all,

    Recently, I always use Illustrator 2 free, script text are: "joinTextFrames" & "divideTextFrame".

    but I lost a lot of step to do

    for example, click: 1. Select text-> 2. File-> 3. Script-> 4. Another script-> load a script

    Fastest way-> Ctrl + F12-> load a script

    But now I want to do is the key 2 'joinTextFrames' & 'divideTextFrame '. The same way "mode button" in stock for faster work.

    How to make or solution to make? I really need it for my work.

    Thanks for your help.

    Save your scripts folder in the scripts, like that they'll show in the file-> Scripts Menu. Then, save the two actions to run each script, each gives a shortcut key (i.e. & F3 F2) or run the Mode button if you want to.

    Note that you need to re - register the action every time that you restart illustrator.

  • How to make a button full screen for Flash Catalyst?

    Hey everybody.  I really hope someone can help me with this.  How can I make a button full screen in Flash Professional that would make my Flash Catalyst project go full screen?

    I'm sorry that I don't really know Flash Catalyst as much as I would like. Interface design is left to me, some designers to my agency use catalyst. If it's the Flash forum is as far as I can tell you. I didn't know that catalyst has not supported the Basic scripts (I thought I read that he did).

    In the end, for a very cheap price, you can do something like go to http://www.lynda.com/ and buy a subscription. Very cheap compared to what you get. They offer numerous courses on everything and I am sure that your answer would be in one of the (well broken up by subject) video training videos.

    You are looking for just a catalyst shows a bunch of courses:

    http://www.Lynda.com/search?q=catalyst&x=0&y=0

    Edit:

    For example, I watched the essential training in 2 minutes and CS5.5 chrono, I noticed that when you click on a button, you should have a 'Interactions' Panel that allows you to do things. If they do not have full screen as an interaction that is another thing, but I'm just pointing out, it is very easy to learn to do all sorts of things in the video training. If you don't want to buy a membership he just find a video that you think would have the info in there and I'll watch it and let you know if she tells me how do and how to do it.

  • How to make a button, a scroll bar

    Hello

    First things first. I know that my English isn't the best but I'll try to explain my problem as clearly as possible.

    I have a problem with my Indesign document, I use indesign5.5.

    I do a version of the ipad to a newspaper. And I did a scroll to the menu item. So if you want to see what's new you can scroll through the topics. But if you see a topic you want to read. You must click on the image of you articale that you want to see.  I can make buttons and I can make a scrolling section, but I can't make a button IN the scrolling section. I tried many ways, but it just doesn't work or it will not scroll with the photos. I hope you guys can help me find a solution.

    Thank you

    It is a new feature that requires the use of the only function of pan in the Pan and zoom overlay.

    Create your block of text, including the inline buttons or hyperlinks. Take note of its width and then draw the frame that you want to keep this content. Visit 5-7 pixels wider than the text frame and align the two, top and left. Cut the block of text to the Clipboard, and then choose the placeholder image. Choose Edition > past.

    With this framework select, choose the decorative Panel to the creator pan and zoom and check the option only pan.

    Bob

  • How to make a button form create a pop up or make the text appear on the screen?

    I need help creating a fake site. Everything I want is when the user clicks on the button submit to a text box below the submit button or a message box pops up saying: "Please fill in all information." or "an email has been sent.

    The email is not real, no e-mail will be sent to the person entering the details.

    If the user does not have all the information, I would like information for stay and the message box, or the text to appear.

    If the user has put all the information, I want the message or text box to appear, but information disappear as the form was reset.

    Someone at - it a solution?

    Someone who knows how to code the buttons to do the other sections of the page appear, or become visible.

    Here is the code for the form... now you need to copy and paste it instead of what you already have, which is configured incorrectly.

    Membership

  • How to make a button disappear and then reappear.

    I do a few language flash cards in adobe flash cs5 with as3. the flashcard is a clip, and when you press a button (located on the lower left corner of the flashcard) the backwards clip card in order to give the translation. It looks a little not professional to have the button to stay in place while the card turns. is there a way to make the button disappear for the duration of the clip, and then reappear at the end?

    (it's easy to dismiss, but he comes back is the problem)

    Thank you

    If the button is in the same timeline as the mc, then inside of the mc you would use a relative reference to target...

    MovieClip (parent).button.visible = true;

    MovieClip (parent).button.visible = false;

  • How to make a button that controls the value of a dynamic text box

    Hey guys

    I wanted to do a manufacturer Bill... sort for me. I have some products Let tell and I click on them, and clicking on these buttons, I'd give to see the numbers add up in a text box dynamics and if I could keep track of the value inside the box.

    Lets say we have 2 buttons. by clicking on the 1st and the 2nd I want to get 12 in the text box and clicking on the 2nd and 1st I would get 21 in my box.

    Is this possible atall with AS2?

    Please guide me through

    Thank you.

    ensure that:

    TF. Text =""; TF is your textfield that shows the results of your movieclip button clicks

    for (var i: Number = 0; i<>

    This ["btn_" + i] .ivar = i;  Use the movieclip buttons btn_1, btn_2,.., btn_9

    This ["btn_" + i] .onRelease = btnF;

    }

    function btnF (): Void {}

    TF. Text += this.ivar;

    }

  • How to make a button link e-mail 0.9 to open outlook instead of my gmail account

    I have windows 7 on a new computer and when I try to send a link, it goes to my account gmail rather than with outlook. This is a new computer. On my old computer with the same operating system the email link button opens my outlook account so that I can send the link. Does not include why it works on the old computer but not new.

    Try to go into the Firefox Options > Applications tab, then find "mailto" as a type of content and make sure that it is set to Outlook instead of Gmail.

  • How to make sliding buttons

    Hey guys!

    What is the best way to make the sliding buttons with function of mathematics building?

    as in this example with body mass index I want to change the settings.

    (only a picture, but you can move the slides back and forth)

    Is there an extension for DW or any good tutorials on how to do this?

    bmi.jpg

    Cursor for bootstrap of Twitter

Maybe you are looking for