If Control Structure--  I'm stuck again!

Woe is me.. stuck again. Below is a snippit of my code. The two middle "if's" won't compile properly because apparently there is/are ")" missing. No matter where I put the missing ")" it still won't work. Obviously I am not writing this out correctly but can't find anything to tell me how to go about joining up > "AND" = . Can anyone help?
=================================================
if(area <10) //Areal is less than 10.
     System.out.println("This is a tiny area");
if(area 10>=30) //Areal is between 10 & 30 inclusive.
     System.out.println("This is a small area");
if(area 30>=100) // Area is between 30 & 100 inclusive.
     System.out.println("This is a large area");
if(area >30) //Area is greater than 100.
     System.out.println("This is a huge area");
==================================================

More food....
check this out:
if(area < 10) { // area is less than 10.
System.out.println("This is a tiny area");
else { // area is greater than 9
if(area <= 30) {
System.out.println("This is a small area");
else { // area is greater than 30
if(area <= 100) {
System.out.println("This is a large area");
else { // area is greater than 100
System.out.println("This is a huge area");
Take care when creating such constructs.
Note: Your tests on the value range of area are exclusive, meaning only one of the tests ("if statements" can be true in the above example). But sometimes you'll need to make tests on overlapping ranges. The question then arises if the you want to proceed after a first sucessful test:
if(area > 5) {
System.out.println("Area is greater than 5.");
if(area > 10) {
System.out.println("Area is greater than 10.");
if area was 20 in the example, both test would be successful. Now what if you would change the value of "area" depending on the test?
if(area > 5) // test 1 {
System.out.println("Area is greater than 5.");
area = area + 7;
if(area > 10) // test 2 {
System.out.println("Area is greater than 10.");
Now, if area originally had a value of 6, test 1 would be sucessful, test 2 would not - if you hadn't modified area's value in test 1.
Therefore, always think about what exactly you want to test, and how you want to treat a sequence of tests. You can use either "else" branches to achieve this or use the "break" statement.
TIP: Sketch a reverse tree on a paper:
O
O O
O O O O
Now, each "O" is actually a test. Each "\" is the stuff you do when that test was sucessfull, each "/" the stuff when it was NOT sucessful, usually the "else" branch of an if statement:
if(test) {
// successful
else {
// not sucessful
1. Always be careful when creating such if-else contstructs, especially when you modify the tested value. Write it down using a tree as suggested.
2. Never modify the tested value inside of if-else constructs. :)
...ah, the phone rings, I was just starting .... :)
Patrick

Similar Messages

  • Profile stuck again...

    Ok..the electric blinked a couple of times this morning in the torrential rain...profile stuck again..I'm fed up to the teeth with this s**t...
    CraigS (one of the mods) emailed me yesterday to inform me that my profile was being "rebuilt" (whatever that means)...everytime I even have the slightest resync my profile is stuck on the banded 2000kps and has to be manually reset...
    Download speedachieved during the test was - 1845 Kbps
     For your connection, the acceptable range of speeds is 400-2000 Kbps.
     Additional Information:
     Your DSL Connection Rate :4640 Kbps(DOWN-STREAM), 448 Kbps(UP-STREAM)
     IP Profile for your line is - 2000 Kbps
    It's giving thunder for Thursday so, no doubt it will be another disaster...can I have it reset please?
    BTW...why is DLM CONSISTENTLY failing?

    Thanks for the answer Craig...I have had a long term problem with REN...after spending much time on this forum debating it with a certain RogerB, we decided it was caused by an ovehead mains  11kv line which supplies a steel manufacturing business...this line (switches ?) at times and the hum from from it interferes with my broadband..
    Like this Daily...[IMG]http://i858.photobucket.com/albums/ab141/dolmenman/Rx_Noise_margin_dB-2010Apr30-1533.jpg[/IMG]
    Unfortunately, I'm not rich enough to take on the power company (or the structural steel works) so when my noise margin (ineveitably) rises to 15+dB I forcibly reduce it with a telnet cmd using the routers broadcom chip...
    Normally by balancing the two (with a 8dB over head on a 53dB loop lose line) I can maintain a 4500kps+ sync for weeks..
    If, on accasion, have have a powersupply issue, or a thunderstorm, I can usually "twiddle" with things and be back to a 3-4 meg connection in 12-36hrs
    Unforunatelly, I no longer seem to be able to do this as ANY disconnect IMMEDIATELY puts me on the 2 meg banded profile...
    PS..we need RogerB back on the case

  • Pse give me the document on control structures

    any body have document on control structures pse send me
    (at new,at end,on change of,at start ,at last)

    If it is control break statements.... then here is the types and explanation
    1. AT NEW f.
    2. AT END OF f.
    3. AT FIRST.
    4. AT LAST.
    Effect
    In a LOOP which processes a dataset created with EXTRACT , you can use special control structures for control break processing. All these structures begin with AT and end with ENDAT . The sequence of statements which lies between them is then executed if a control break occurs.
    You can use these key words for control break processing with extract datasets only if the active LOOP statement is proceesing an extract dataset.
    The control level structure with extract datasets is dynamic. It corresponds exactly to the sort key of the extract dataset, i.e. to the order of fields in the field group HEADER by which the extract dataset was sorted .
    At the start of a new control level (i.e. immediately after AT ), the following occurs in the output area of the current LOOP statement:
    All default key fields (on the right) are filled with "*" after the current control level key.
    All other fields (on the right) are set to their initial values after the current control level key.
    Between AT and ENDAT , you can use SUM to insert the appropriate control totals in the number fields (see also ABAP/4 number types ) of the LOOP output area (on the right) after the current control level key. Summing is supported both at the beginning of a control level ( AT FIRST , AT NEW f ) and also the end of a control level ( AT END OF f , AT LAST ).
    At the end of the control level processing (i.e. after ENDAT ), the old contents of the LOOP output area are restored.
    Notes
    When calculating totals, you must ensure that the totals are inserted into the same sub-fields of the LOOP output area as those where the single values otherwise occur. If there is an overflow, processing terminates with a runtime error.
    If an internal table is processed only in a restricted form (using the additions FROM , TO and/or WHERE with the LOOP statement), you should not use the control structures for control level processing because the interaction of a restricted LOOP with the AT statement is currenly not properly defined.
    With LOOP s on extracts, there are also special control break control structures you can use.
    Note
    Runtime errors
    SUM_OVERFLOW : Overflow when calculating totals with SUM .
    Variant 1
    AT NEW f.
    Variant 2
    AT END OF f.
    Effect
    f is a sub-field of an internal table processed with LOOP . The sequence of statements which follow it is executed if the sub-field f or a sub-field in the current LOOP line defined (on the left) before f has a differnt value than in the preceding ( AT NEW ) or subsequent ( AT END OF ) table line.
    Example
    DATA: BEGIN OF COMPANIES OCCURS 20,
    NAME(30),
    PRODUCT(20),
    SALES TYPE I,
    END OF COMPANIES.
    LOOP AT COMPANIES.
    AT NEW NAME.
    NEW-PAGE.
    WRITE / COMPANIES-NAME.
    ENDAT.
    WRITE: / COMPANIES-PRODUCT, COMPANIES-SALES.
    AT END OF NAME.
    SUM.
    WRITE: / COMPANIES-NAME, COMPANIES-SALES.
    ENDAT.
    ENDLOOP.
    The AT statements refer to the field COMPANIES-NAME .
    Notes
    If a control break criterion is not known until runtime, you can use AT NEW (name) or AT END OF (name) to specify it dynamically as the contents of the field name . If name is blank at runtime, the control break criterion is ignored and the sequence of statements is not executed. If name contains an invalid component name, a runtime error occurs.
    By defining an offset and/or length, you can further restrict control break criteria - regardless of whether they are specified statically or dynamically.
    A field symbol pointing to the LOOP output area can also be used as a dynamic control break criterion. If the field symbol does not point to the LOOP output area, a runtime error occurs.
    Note
    Runtime errors
    AT_BAD_PARTIAL_FIELD_ACCESS : Invalid sub-field access when dynamically specifying the control break criterion.
    AT_ITAB_FIELD_INVALID : When dynamically specifying the control break criterion via a field symbol, the field symbol does not point to the LOOP output area.
    ITAB_ILLEGAL_COMPONENT : When dynamically specifying the control break criterion via (name) the field name does not contain a valid sub-field name.
    Variant 3
    AT FIRST.
    Variant 4
    AT LAST.
    Effect
    Executes the appropriate sequence of statements once during the first ( AT FIRST ) or last ( AT LAST ) loop pass.
    Example
    DATA: BEGIN OF COMPANIES OCCURS 20,
    NAME(30),
    PRODUCT(20),
    SALES TYPE I,
    END OF COMPANIES.
    LOOP AT COMPANIES.
    AT FIRST.
    SUM.
    WRITE: 'Sum of all SALES:',
    55 COMPANIES-SALES.
    ENDAT.
    WRITE: / COMPANIES-NAME, COMPANIES-PRODUCT,
    55 COMPANIES-SALES.
    ENDLOOP.
    ON CHANGE OF f.
    Executes the processing block enclosed by the "ON CHANGE OF f" and "ENDON" statements whenever the contents of the field f change (control break processing).
    Normally, you use the statement to manipulate database fields during GET events or SELECT/ENDSELECT processing.
    ON CHANGE OF is unsuitable for recognizing control levels in loops of this type because it always creates a global auxiliary field which is used to check for changes. This global auxiliary field is only changed in the relevant ON CHANGE OF statement. It is not reset when the processing enters loops or subroutines, so unwanted effects can occur if the loop or subroutine is executed again. Also, since it is set to its initial value when created (like any other field), any ON CHANGE OF processing will be executed after the first test, unless the contents of the field concerned happen to be identical to the initial value.
    DATA T100_WA TYPE T100.
    SELECT * FROM T100
    INTO T100_WA
    WHERE SPRSL = SY-LANGU AND
    MSGNR < '
    ORDER BY PRIMARY KEY.
    ON CHANGE OF T100_WA-ARBGB.
    ULINE.
    WRITE: / '**', T100_WA-ARBGB, '**'.
    ENDON.
    WRITE: / T100_WA-MSGNR, T100_WA-TEXT.
    ENDSELECT.
    Displays all messages with their numbers in the logon language, provided the number is less than '010'.
    Each time the message class changes, it is output.
    AT END OF f.
    f is a sub-field of an internal table or extract dataset (EXTRACT) which is being processed with LOOP, i.e. the variants 1 and 2 only make sense within a LOOP.
    Both "AT NEW f." and "AT END OF f. " introduce processing blocks which are concluded by " ENDAT.".
    These processing blocks are processed whenever the contents of a field f or a sub-field defined before f change as a result of processing with LOOP. "AT NEW f." begins a new group of (table) lines with the same contents as the field f while "AT END OF f." concludes such a group.
    Within the AT ... ENDAT processing of internal tables, all argument fields following f are filled with "*".
    Examples
    1. AT for sub-fields of an internal table
    DATA: BEGIN OF COMPANIES OCCURS 20,
    NAME(30),
    PRODUCT(20),
    SALES TYPE I,
    END OF COMPANIES.
    LOOP AT COMPANIES.
    AT NEW NAME.
    NEW-PAGE.
    WRITE / COMPANIES-NAME.
    ENDAT.
    WRITE: / COMPANIES-PRODUCT, COMPANIES-SALES.
    AT END OF NAME.
    SUM.
    WRITE: / COMPANIES-NAME, COMPANIES-SALES.
    ENDAT.
    ENDLOOP.
    The AT statements refer to the field COMPANIES-NAME.

  • Why not a parallel control structure?

    I often come across the need to run several identical and independent operations at the same time. I almost always end up doing them sequentially instead because I can use a for loop for this. It would be a great asset to parallel programming if there was a "for loop" like structure that ran all iterations at the same time (multithreaded, reentrant support, of course). One could then send a command and wait for a response on several instruments at once (in parallel) without having to spend as much time waiting sequentially for each to complete. The input tunnels could be arrays in which the number of elements determined the number of simultaneous panes running each with its own member of the array. The iteration terminal could output
    a sequential number for each logically parallel pane as well. For debug the user could have a way to select which pane to view as all would be running. The output tunnels could also be arrays. Each pane would operate independently from all the others. I think that this is a very useful suggestion and should be incorporated into the product even though it is less intuitive than the other control structures. It provides a capability that currently is hard to attain (though not impossible) but often useful in constructing time efficient hardware control.

    > I have raised this with NI about two years ago
    > thinking that it would not require a huge architectural change but
    > rather a compiler addition only but it has yet to surface in the last
    > three releases.
    Adding a structure like this would be a decent amount of work. It would
    be yet another way of specifying parallel diagrams. I'm not saying that
    LV will never add a structure to make something like this easier, but it
    is more than ajust a compiler tweak. In the meantime, try something
    like the following.
    Place your code to do instrument control in a VI.
    Make the VI reentrant.
    Decide how many parallel tasks you want to carry out. Yes, this is
    static, but there are real limits to how many of these that can be
    carried out anyway.
    So something like two or four is probably a good
    start. Four threads is how many threads LV now spins up for the
    standard execution system by default in LV7 so that seems like a good
    number.
    In your For loop, place N of the reentrant subVIs, index out the
    elements and pass them to the subVI.
    Make sure the subVI tests for a refnum of not a refnum so that you can
    handle indexing past the array.
    This pattern, especially with a diagram comment, should make it pretty
    obvious that you have unrolled the loop and should make it pretty easy
    to change the unrolling number.
    Greg McKaskle

  • Dear all, I have a MacBook Pro bought in April 2011. Last April, it got stuck while the wheel was spinning and I had to force it shut. That cost me my hard drive. Now, it's stuck again. I tried esc, cmd tab, moving the trackpad on the apple, but no. HELP!

    Dear all, I have a MacBook Pro bought in April 2011. Last April, it got stuck while the wheel was spinning and I had to force it shut. That cost me my hard drive. Now, it's stuck again. I tried esc, cmd+tab, moving the trackpad on the apple, but no. HELP!

    Dear John,
    thank you for your prompt reply. After I sent the email, I left the wheel spinning to see if it would eventually stop. It didn't, but after a while the screen turned blue, so I decided to switch everything off with a forced shut-down. I could not restart with the OS DVDs because I am currently away from home, but fortunately everything was more or less fine after restarting. It then got stuck again, I forced it shut again, restarted again, and now it seem to work but I won't overdo it and will switch off smoothly after writing this (unless it gets stuck again). Last April I have replaced the HD, so it's now just under 6 months old. And, of course, since the crash occurred when I was abroad and had backed up just before I left, I have lost only a few days' work. Still, and I know this will make me hugely unpopular here, with my 5 previous laptops running on MS Windows I never had a problem. Which does not mean I loved the OS, or I would not have switched to Mac.
    Anyway, and this is the main reason for this message, thank you very much again for your speedy intervention.
    Claudia

  • I am stuck again, really tried hard, to no avail

    Dear applescript genius,
    I have had help, came a long way, but got stuck again.
    I am still facing a lot of problems, but this one is now top 1 prio for me.
    I am trying to automate creating a new event in facebook.
    When you click Create Event on your facebook page, a new form pops up where you can fill in data of the event you want to create.
    I am trying to build an applescript to automate this proces.
    I have learned from this forum how to find the pointers to the form elements.
    I can use the following code to fill in a form element :
      tell Details_Pointer
      set focused of Details_Pointer to true
      delay delay_time
      keystroke "a" using command down
      keystroke "Details of the event"
      delay delay_time
      keystroke (ASCII character (9))
      end tell
    Where Details_Pointer is the UI Element of the form element "Details"
    But this code is not robuust and needs delays between filling in the diferent elements.
    So, i have been trying this code:
      tell process Details_Pointer
      activate
                                  set value of Details_Pointer to "Details of this event"
      end tell
    But when you use this code to fill in the elements of the form and then you click Create on the form, non of the data filled in on the form is takn over!.
    Could some please show what to do to fil in the form elements so that the information is actually "taken over" in the form?
    Ths is the code i use.
    LocateElementsTFTA() is to locate the UI Elements
    find_new_event_pointers() is to extract the UI Elements of the form.
    And then the last lines of code
    tell application "Safari"
      activate
      tell application "System Events"
      keystroke "Title of this event"
      end tell
    end tell
    Is used to fill in the form elements.
    What happens s that when yu run this code the form elements seem te have taken over the data. However when you click on create non of the info is "taken over" (except for the first element where the Keystroke command is used)
    Can someone please help me to make a next step in this code?
    Thanks
    jschaafsma
    set pointers to {}
    global Details_Pointer
    global name_Pointer
    global where_Pointer
    global when_Pointer
    global start_time_Pointer
    on LocateElementsTFTA()
      script o
      property mindepth : 2
      property maxdepth : 8
                        property uu : {}
                        tell application "System Events"
      tell application process "Safari"
                                            set d to 1
      set uuref to a reference to window 1's UI elements
                                            repeat while (count uuref) > 0
                                                      if d < mindepth then
                                                      else
      repeat with u in (uuref whose (class = text field or class = text area))
      --set end of my uu to {d, u's contents} -- for test
                                                                          set end of my uu to u's contents
      end repeat
                                                      end if
                                                      set d to d + 1
      if d > maxdepth then exit repeat
      set uuref to a reference to uuref's UI elements
      end repeat
      end tell
      end tell
      return uu's contents
      end script
      tell o to run
    end LocateElementsTFTA
    on find_new_event_pointers()
      set pointerlijst to LocateElementsTFTA()
      set process_error to 5
              tell application "System Events"
      tell application process "Safari"
      repeat with deze_pointer in pointerlijst
      set veldwaarde to (title of deze_pointer as string) & "  " & (value of deze_pointer as string)
                                            if veldwaarde contains "Add more info" then
      set Details_Pointer to deze_pointer
      set process_error to process_error - 1
                                            end if
                                            if veldwaarde contains "Birthday" then
      set name_Pointer to deze_pointer
      set process_error to process_error - 1
                                            end if
                                            if veldwaarde contains "Add a place" then
      set where_Pointer to deze_pointer
      set process_error to process_error - 1
                                            end if
                                            if veldwaarde contains "Expected format" then
      set when_Pointer to deze_pointer
      set process_error to process_error - 1
                                            end if
                                            if veldwaarde contains "Add a time" then
      set start_time_Pointer to deze_pointer
      set process_error to process_error - 1
                                            end if
      end repeat
      end tell
      end tell
      return process_error
    end find_new_event_pointers
    my find_new_event_pointers()
    tell application "Safari"
      activate
              tell application "System Events"
                        keystroke "Title of this event"
      keystroke (ASCII character (9))
      tell process where_Pointer
      activate
                                  set value of where_Pointer to "Where the event takes place"
      end tell
      tell process Details_Pointer
      activate
                                  set value of Details_Pointer to "Details of this event"
      end tell
      tell process when_Pointer
      activate
                                  set value of when_Pointer to "7/5/2012"
      end tell
      tell process start_time_Pointer
      activate
                                  set value of start_time_Pointer to "06:20 am"
      end tell
      end tell
    end tell

    Try deleting and then App Store > Updates > Purchased and then find your apps again.

  • PLM-CPR Multilevel Controlling (Structure Elemen, Automatic) :: WBS

    We use Multilevel Controlling (Structure Elemen, Automatic) controlling
    method for automatic cProjects project transfer in PS projects. We need
    WBS element key (PRPS-POSID) would be transferted from a cProject
    field with external number (user field or standard field "Number"
    on "General data" tab for cProjects task modifired for external
    maintenence - see message 0000082945 2008). We also would like to
    transfer not all tasks and phases into WBS elemets. We need to transfer
    only some of them.
    Are there any ideas for standart functions modifacation?
    Ñould anyone please name functional modules used in automatic cProjects
    project transfer to PS projects.
    Product versions:
    SAP cProject 4.0 (SP 0011)
    SAP ECC 6.0
    Best regards
    Edited by: Aleksey Teplouhov on Feb 18, 2008 9:11 AM
    Edited by: Aleksey Teplouhov on Feb 18, 2008 9:12 AM

    Hi All,
              Even i need information on this..
    regards,
    rajesh.

  • Getting PL/SQL:ORA-00933 when using CASE logic as a control structure

    Hello Everybody,I have created a PL/SQL block(Control Structure) to calculate bonus of employees based on salary of the employee,but I get errors like ORA-00933 and ORA-06550.Given below is the PL/SQL block which I tried to implement
    SQL> DECLARE
    2
    3 v_EMPNO NUMBER(7,2):= &p_EMPNO;
    4 v_SAL EMP.SAL%TYPE;
    5 v_BONUS NUMBER;
    6
    7 BEGIN
    8 SELECT SAL
    9 FROM EMP
    10 INTO v_SAL
    11 WHERE EMPNO = v_EMPNO;
    12
    13 v_BONUS :=
    14 CASE v_SAL
    15 WHEN v_SAL = 0 THEN 0
    16 WHEN v_SAL < 1500 THEN (0.1*v_SAL)
    17 WHEN v_SAL BETWEEN 1500 AND 3000 THEN (0.15*v_SAL)
    18 WHEN v_SAL > 3000 THEN (0.20*v_SAL)
    19 END;
    20
    21 DBMS_OUTPUT.PUT_LINE(' EMPNO '||v_EMPNO||' SALARY '||v_SAL||' BONUS '||V_BONUS);
    22
    23 END;
    24 /
    Enter value for p_empno: 7100
    old 3: v_EMPNO NUMBER(7,2):= &p_EMPNO;
    new 3: v_EMPNO NUMBER(7,2):= 7100;
    INTO v_SAL
    ERROR at line 10:
    ORA-06550: line 10, column 7:
    PL/SQL: ORA-00933: SQL command not properly ended
    ORA-06550: line 8, column 7:
    PL/SQL: SQL Statement ignored
    Is it that I can not use "CASE" as a control structure in the above block , when I code
    "SELECT SAL
    FROM EMP
    INTO v_SAL
    WHERE EMPNO = v_EMPNO;" to get v_SAL and then use it in CASE exp to calculate a value for v_Bonus.
    Kindly let me know.

    Hi,
    The CASE Expression is also available in PL/SQL.
    Try this code:
    DECLARE
       V_EMPNO   NUMBER (7, 2)  := 7788;
       V_SAL     EMP.SAL%TYPE;
       V_BONUS   NUMBER;
    BEGIN
       SELECT SAL
         INTO V_SAL
         FROM EMP
        WHERE EMPNO = V_EMPNO;
       V_BONUS :=
          CASE
             WHEN V_SAL = 0
                THEN 0
             WHEN V_SAL < 1500
                THEN (0.1 * V_SAL)
             WHEN V_SAL BETWEEN 1500 AND 3000
                THEN (0.15 * V_SAL)
             WHEN V_SAL > 3000
                THEN (0.20 * V_SAL)
          END;
       DBMS_OUTPUT.PUT_LINE (   ' EMPNO '
                             || V_EMPNO
                             || ' SALARY '
                             || V_SAL
                             || ' BONUS '
                             || V_BONUS
    END;As you are Using,Comparison Expression to find a match, Your Searched CASE Expression should be something like this.
    DECLARE
      sal       NUMBER := 2000;
      sal_desc  VARCHAR2(20);
    BEGIN
      sal_desc := CASE
                     WHEN sal < 1000 THEN 'Low'
                     WHEN sal BETWEEN 1000 AND 3000 THEN 'Medium'
                     WHEN sal > 3000 THEN 'High'
                     ELSE 'N/A'
                  END;
      DBMS_OUTPUT.PUT_LINE(sal_desc);
    END;If you are Using CASE as a Value matching then your piece of code should be like this..
    DECLARE
      deptno     NUMBER := 20;
      dept_desc  VARCHAR2(20);
    BEGIN
      dept_desc := CASE deptno
                     WHEN 10 THEN 'Accounting'
                     WHEN 20 THEN 'Research'
                     WHEN 30 THEN 'Sales'
                     WHEN 40 THEN 'Operations'
                     ELSE 'Unknown'
                   END;
      DBMS_OUTPUT.PUT_LINE(dept_desc);
    END;Thanks,
    Shankar

  • User Exit to change idoc control structure

    Hi everybody.
    Does In a inbound idoc process exist any userexit to modify the control structure of the idoc????
    Thanks

    Hi ,
    I dont think you can change the control record of any IDOC .
    If you look at an example Function module MASTERIDOC_CREATE_CREMAS , used to create Vendor IDOCS ,
    the call customer-function has only the idoc data record as tables parameter .

  • After a power outage Apple TV can't find date and time - just keeps spinning on that screen. Tried powering off Apple TV, the computer, and the router. Tried to restart Apple TV. Tried to restore Apple TV, but it got stuck again setting time/date.

    After a power outage Apple TV can't find date and time - just keeps spinning on that screen. Tried powering off Apple TV, the computer, and the router. Tried to restart Apple TV. Tried to restore Apple TV, but it got stuck again setting time/date.

    Welcome to the Apple Community.
    Along with the things you have tried, some have had success setting the location to the US.

  • How can I print source code with connecting lines on control structures?

    Anyone know of any programs that will format source code printouts and print connecting lines from the start to the end of control structures (such as: if--"end if", while-"end while" etc.)?

    Indentations and comments do help read source code. However, when you have a large program with many levels of nesting of control structures the readability of the code (even with indentations) becomes very difficult.

  • BRAS profile stuck AGAIN =(

    Very close to my exchange and regulary get near full 8Mbps from a very stable connection.
    Looks like this weekend has seen my bRAS profile stuck AGAIN! =(
    Speedtest results
    Now the last time, took an age for the first line of BT tech "help" - so I thought I'd see if there was a less stressful way to get it fixed.
    Any suggestions from the community?
    Solved!
    Go to Solution.

    profile will only change if you have problems with connection and connection drops.  the reason for the 3+ days connection is to ensure that line is now stable to avoid the same thing happening next again day and the automatic system should correct the profile in that timescale.  normally if you drop connection and connects back at lower speed profile will drop almost immediately to correct value for current speed but when speed reverts back to 'normal' the profile on adslmax 20CN can take 3/5 days to increase.
    the mods are the certain way to get profile fixed but you can try others
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Hand Cursor stuck again

    I thought my problem was solved, however, the hand cursor is stuck again when I go to Kohl's Website and try to order anything. When I click on "add to bag" that is when the cursor won't move.

    This issue can be caused by corrupted cookies or cookies that are blocked.
    *check the permissions on the about:permissions page and in "Tools > Page Info > Permissions"
    *https://support.mozilla.org/kb/fix-login-issues-on-websites-require-passwords
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    If clearing cookies didn't help then it is possible that the cookies.sqlite file that stores the cookies got corrupted.
    *Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookies files like <b>cookies.sqlite-journal</b> in the Firefox profile folder in case the file cookies.sqlite got corrupted.
    *http://kb.mozillazine.org/Cookies
    *https://support.mozilla.org/kb/Deleting+cookies

  • Control structure in loops.

    I want to do something like below done in Perl in Pl/Sql but am not getting to it.
    # Perl code
    while($i <5)
    ... DO SOMETHING
    if ($i == 3)
    # means that start the loop again with $i = 4.
    next;
    # The following lines will be skipped when the value of $i will be 3
    ... DO SOMETHING
    $i++;
    Similarly,
    I have some cursor in pl/sql and I open a loop.
    -- Pl/SQl code
    for rec in cursor_records loop
    ... DO SOMETHING
    if( rec.my_val = 3) then
    -- now, what is the control statement do i need to give here, similar to above like next.
    -- Means, when value of rec.my_val is 3, then the lines following the if loop will get
    -- skipped and loop will continue for value 4.
    end if;
    ... DO SOMETHING
    end loop;
    Thanks..

    Thanks all for their replies.
    Looks like we don't have a way something like next/continue in Pl/Sql.
    hi Dave,
    I cannot use the approach you have said in the first reply as
    if you closely see my code, I have DO_SOMETHING before the check condition
    and have DO_SOMETHING again after the check condition.
    Your reply1, solves if only I have DO_SOMETHING2, and not DO_SOMETHING1.
    hi Leo,
    I see two loops as an overhead and I really do not prefer this approach.
    There can be a case when when a cursor is taking sometime to fetch a million records
    from billions of records and then act on them.
    In such a case, running two of them is really an overhead.
    I think that I will have to live with <<GO_TO>> option.
    Anywz, Thanks all for their replies and their effort.

  • After installing ios 8.0.2 internet is extremly slow and doesn't work at all half the time. I have done several reboots when it got stuck again. The touchscreen does only sometimes work on safari, half the time I can't navigate and cant open new tabs

    IOs 8.0.2 internet stuck and no touchscreen

    The following has gotten good results from users here ... a reset to factory default condition ...
    Back up and Restore your iOS Device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    iTunes: About iOS Backups
    http://support.apple.com/kb/ht4946
    Use iTunes to Restore your iOS Device to Factory Settings
    http://support.apple.com/kb/ht1414
    Here's someone who posted his results ...
    keithfrommariettaOct 12, 2014 3:25 PM Re: IPAD2 very slow after IOS 8 upgrade
    Re: IPAD2 very slow after IOS 8 upgradein response to pacoKAS
    SOLVED:  IOS 8 Issues on iPad 2:
    I just returned home from a visit to the Genius Bar. Like you and many others, when I upgraded my iPad 2 to IOS 8, it became practically unusable. It was VERY slow, lagged whenever trying to to do anything. Lots of screen freezes and apps spontaneously crashing. I was convinced that the processor on the iPad 2 just couldn't handle the new IOS and I went in to see about restoring to IOS 7.
    Thankfully, I was hooked up with a very sharp guy at the bar. The problem is not with the OS, it is with it being an *upgraded* OS. He used the analogy of when you had an older Windows computer and how over time (and over upgrades), they just tended to get slower and slower because of all of the garbage that was carried forward in the upgrades. At those times (and if you've ever had a Windows computer, you get this), the only thing that would speed it up would be to wipe the machine and do a fresh install of the current OS and then reload your apps, and the viola, everything would be fast again. Well, it turns out that IOS can suffer the same problems.
    THE FIX:  FIRST, be sure you have a current iCloud backup of your device.  Connect your iPad to a computer that has a clean fresh copy of IOS 8 on iTunes (this is best done with a computer other than the one that you sync your device to because you DO NOT want to restore it from a back up just yet). Ideally, if you do this at an Apple store you'll be assured of the right version there and someone to answer any questions you might have along the way. You then hold the power and home button down to hard-reset the device and continue to hold them down until it reboots into recovery mode. You then follow the instructions on the computer to reinstall the OS on the device (which wipes everything from it and then reinstalls a clean copy of it). Once this is done (which only takes about 15 minutes), your device will reboot and ask you to set it up. Answer the questions about language, location, etc. and continue until it asks you to log into your iTunes account. Once you do that, it will ask if you want to either 1) Set it up as a new device, 2) Restore from iCloud, or 3) Restore from iTunes. Choose (2), restore from iCloud. This will ensure that it brings down "clean" copies of all of your apps and preferences rather than the potentially corrupted ones that might reside in your iTunes backup. That's it! It will take a few hours depending on how much data and apps you have, but I am happy to report that my iPad 2 is now running IOS 8 and it's running as fast as it ever did when it was brand new!
    To sum it up, this process 1) Wipes your device and the garbage causing your problems, 2) Loads a clean and bug-free version of IOS 8 to your device, and 3) restores your apps and data so that it looks just like it did before the wipe, with the exception that it works now!  :-)
    Note also that by following this process you don't have to go through the painful and laborious process of reloading all of your apps, data and/or settings. iCloud takes care of all of that for you.

Maybe you are looking for

  • Itunes 10.5.3 update radio issue.

    Just had a software update notification for iTunes with the new iBooks stuff in, so I updated it, like you do, and now it continually tries to update radio lists, and keeps throwing up error messages, stopping me from usingTunes. Clicking the X in th

  • Java error when uninstalling CF11 32-bit

    HI all, I am trying to uninstall ColdFusion 11 (32-bit) edition so I can reinstall CF11 64-bit on my Win2k8r2 production server. I currently have CF9 installed and running on this server.  I get a fatal error from the jre when attempting the CF11 uni

  • Oracle 10g + Solaris + 32bit Sun Hardware

    Does Oracle 10g (which has a default 64bit Solaris installation) work on solaris + 32bit Sun Hardware? thanks

  • Block users from Home Hub 3 wi-fi without them kno...

    Is there any way on the homehub 3 to block users on the wifi without it giving them a notification? When you use the parental lock down between certain times when the user opens a web page it says they've been locked down by the hub but I don't want

  • QM Process

    Hi, Can any one explain me the different steps in the Quality Management till posting the goods to unrestricted stock along with the T-codes?. Thanks in advance.