Swap between value

I wish to know can we swap between 2 variable's value without using 3 variable? Let's say i have a variable x and y, which x=3 y=6, if i wan x=6, y=3, how i change the value without using 3rd variable?

Darryl.Burke wrote:
Values around Integer.MAX_VALUE and MIN_VALUE don't seem to cause a wrong result, and I wouldn't think they should. So which numbers would be the corner cases?
dbThose would've been the ones I thought. I just remember seeing somebody here claim it wouldn't work, but it might have been a different situation, or the person might have been full of it.

Similar Messages

  • Swap between two different item categories in sales orders for sub-contracting

    Dear gurus,
    my requirement is to have the ability to swap between two different item categories for sales orders for sub-contracting.
    This should be controlled by a combination of the material and a value maintained the Usage field in the Customer Material Info Record (for example by entering a ‘V’).  A combination of Sales Doc Type, Item Cat Group and Usage should result in the creation of a purchase requisition.
    In the event that a process order is required instead of a purchase requisition (i.e. the product is to be manufactured in-house instead of sub-contracted) the user must have the ability to change the Item Category within the sales order to produce a process order.
    The user would just change the item category within the sales order, and the system would automatically remove the purchase requisition assigned to the SO, and create a process order and assign it to the SO.
    Can you suggest any possible solution?
    Thank you in advance.

    Hi Majlo,
    In my system, I checked.  First created sales order with third party line item and then changed item category to normal item category.
    Till Purchase order not created, I can change Item category of my sales order line item.
    In this case SAP inform by log and once save delete purchase requisition of that line item .
    For this you need to assign another item category as an manual item category in SPRO Item category assignment.
    After this user can manually change item category to other one manually, if PO do not exist.
    Please let me know if your query is different.
    Regards

  • Swapping between different logical views

    I am designing an applet that has several logical views, such as Login, Registration, Waiting Area, and Game. I am very new to applets and Swing, and I can't figure out how to have each of these designed separately and then swap between them. Ideally, this is what I would like:
    1) Each view can be designed separately using NetBeans IDE, preferably in different classes for neatness.
    2) When certain conditions are met (such as successful login), then all content in the applet window will be removed and replaced with that of a new view.
    I attempted to use setContentPane to achieve this, but it doesn't seem to repaint correctly except when called initially. Otherwise, the setting the content pane and calling repaint will pain the screen blank. If you resize the window (only possible via applet viewers, not via web page applet) then the content displays properly. It seems like I need to somehow force the applet to repaint, but neither the repaint method nor manually modifying items, such as changing text on the new screen via setText, will not force it to display.
    When I used setContentPane(myLoginGUI.getContentPane) in an event-dispatching thread during init, it correctly displays the login page.
    Here's some of the code I was using, involving classes Client, LoginGUI, and RegisterGUI, which all extend japplet:
        //in Client.java:
        //called during init from an event dispatching thread
        //also called in RegisterGUI from button handler for goBackToLogin button
        public void createLoginGUI(){
            myLoginGUI = new LoginGUI();
            this.setContentPane(myLoginGUI.getContentPane());
            repaint();
        //called when user clicks register button from login page.  button handler
        //is in LoginGUI
        public void createRegisterGUI() {
            myRegisterGUI = new RegisterGUI();
            this.setContentPane(myRegisterGUI.getContentPane());
            repaint();
        }Thanks for reading this and any insights you may have.
    Message was edited by:
    bubonics

    The easiest way is to use a CardLayout:
    http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html
    In general, whenever you add or remove a compnent from a Container you need to validate(), or if its a Swing compnent, revalidate() the container. So you could try to validate() the frame before the repaint.

  • Every time I swap between my SIM cards with the iPhone all the messages that we're sent whenever the SIM card was not in my phone never show! is there anyway I can stop this and still get the massages?

    every time I swap between my SIM cards with the iPhone all the messages that we're sent whenever the SIM card was not in my phone never show! is there anyway I can stop this and still get the massages?

    Hello SeamusFitz,
    Thank you for using Apple Support Communities!
    In order to get your messages to show up on your other phone, you would need to have a backup of the phone with the messages, and then restore the new phone from that backup.
    According to article iTunes: About iOS backups found here http://support.apple.com/kb/HT4946 iTunes will backup your Messages.
    iTunes will back up the following information
    Messages (iMessage and carrier SMS or MMS pictures and videos).
    This will help you backup and restore your device:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    All the very best,
    Sterling

  • Every time I swap between my SIM cards with the iPhone all the messages that we're sent whenever the SIM card was not in my phone never show! is there anyway I can stop this?

    every time I swap between my SIM cards with the iPhone all the messages that we're sent whenever the SIM card was not in my phone never show! is there anyway I can stop this and still get the massages?
    [email protected]
    cheers

    Hello SeamusFitz,
    Thank you for using Apple Support Communities!
    In order to get your messages to show up on your other phone, you would need to have a backup of the phone with the messages, and then restore the new phone from that backup.
    According to article iTunes: About iOS backups found here http://support.apple.com/kb/HT4946 iTunes will backup your Messages.
    iTunes will back up the following information
    Messages (iMessage and carrier SMS or MMS pictures and videos).
    This will help you backup and restore your device:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    All the very best,
    Sterling

  • Difference between value and binding ?

    hello
    I am afraid I am not clear on difference between value and binding of a component?
    I will appreciate if you supply an explanation.
    kind regards

    Binding? Aren't you talking about JSF? That term doesn't occur in JSP world.

  • How to maintain space between value and base unit of measure in sapscript

    Hi Guys,
    I am working on an upgradtion project, i have problem like while upgrading from 4.6b to 5.0. i need to main a space between value and base unit of measure. can anyone letme know how to maintain in the form. I mean in sapscript.
    Thanks,
    Yogesh

    There are a couple of ways to handle this,  if you need a bigger space between, you can use tabs in the paragraph format.  Or you can just write the space in between the fields like so.
    ZA  &MSEG-MENGE& &MSEG-MEINS&
    Regards,
    RIch Heilman

  • Reporting on between values

    Hello,
    I am trying to create a report that reports on all contacts that have a post code between 3000 - 3005 but the list goes on to include about another 100 values 3008 - 3015 ect.
    I have tried to create a report using the between function and coping and pasting the formula to create the next between value but this is not working and it is take along time to create. I don't believe there is any between value SQL that can be run as you can only do two values in SQL.
    Can anyone offer a solutions to display all contact that have a postal code of between 3000 - 3005; 3008-3010; 3105-3109 etc?

    Alex,
    Thats what i was going to do and then it comes up with this error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46036] Internal Assertion: Condition !pConjunct->IsAndCond(), file .\Src\SQORToCNF.cpp, line 46. (HY000)
    SQL Issued: SELECT Contact."Contact Furigana First Name" saw_0, Contact."External ID" saw_1, Contact."Contact First Name" saw_2, Contact."Contact Last Name" saw_3, "- Contact Custom Attributes".TEXT_31 saw_4, Contact."Email Address" saw_5, "- Contact Address - Extended"."Address 1- Extended" saw_6, "- Contact Address - Extended"."Address 2 - Extended" saw_7, "- Contact Address - Extended"."Address 3 - Extended" saw_8, "- Contact Address - Extended"."City - Extended" saw_9, "- Contact Address - Extended"."Province - Extended" saw_10, "- Contact Address - Extended"."Zip Code - Extended" saw_11 FROM "Contact Lists" WHERE ("- Contact Address - Extended"."Province - Extended" = 'VIC') AND ("- Contact Custom Attributes".INDEXED_PICK_0 NOT IN ('Do not contact', 'Inactive')) AND ((Contact.Type <> 'Investor') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3000' AND '3005') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3007' AND '3009') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '8000' AND '8399') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '8502' AND '8505') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3022' AND '3036') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3039' AND '3050') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3052' AND '3073') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3077' AND '3078') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3080' AND '3083') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3086' AND '3100') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3335' AND '3341') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3425' AND '3443') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3750' AND '3751') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '3753' AND '3764') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '8401' AND '8403') OR ("- Contact Address - Extended"."Zip Code - Extended" BETWEEN '8417' AND '8424')) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4, saw_5, saw_6, saw_7, saw_8, saw_9, saw_10, saw_11

  • Can I swap between usb2 and usb3 on macbook pro retina

    can I swap between usb2 and usb3 on macbook pro retina.
    At the moment I have an external USB2 HDD and have ordered
    a new USB3 HDD.
    Does the macbook automatically recognise the difference.
    Regards
    oldboy135

    Yes, the MBP will accommodate USB2 peripherals in the USB3 ports, but the transfer rate will be at USB2 speeds.
    You may use both without concern.
    Ciao.

  • Swapping between 2 Oracle instances and Discoverer

    We have this strategy of swapping between 2 Oracle instances every month to minimize downtime for our users. Our data warehouse is refreshed every month which takes about 2 to 4 days. Instance 2 is being re-loaded with next month's data, while users are currently pointing to Instance 1, loaded with current month's data. Once re-load is completed with Instance 2, users will now have to point to Instance 2. This goes on every month. How can we implement swapping, without our Discoverer users even knowing that the database had been swapped?

    If you are using Discoverer on the web, every two months you can change the TNS entry for the database on all the Discoverer server machines. That way the users type the same database alias (or you can code it into the URL so they don't have to type it), and Discoverer will connect to whichever database you have defined for that alias. Since the TNSnames.ora file is not on the users' machines, you can update them as you need.

  • Swapping between windows of a same application...

    Hello all,
    I'm trying to find a way to swap between different windows of the same app using keyboard shortcuts.
    Under Tiger, I used cmd(apple) + >
    This does not seem to work anymore under Leopard !
    Anyone has an idea ??

    With the US keyboard it's Command-` or Command-~
    which should be Command-< or Command-> with the French keyboard.
    Look in the "Keyboard Navigation" section" of "Keyboard Shortcuts" in "Keyboard & Mouse" system preference to see if it has been changed on your system. Does it work in other user accounts"?

  • Slow swapping between Photoshop and Illustrator

    I have had this issue for a while now where it takes forever to swap between photoshop and illustrator, even if nothing is on my clipboard.  It also seems like it takes forever for photoshop to display its UI no matter what program I am working in prior to clicking on it on the task bar.  Once I am in the programs, they run fine until I try to save or print, at which point to slow to a crawl again.  It wasn't  always like this, but I had to do a system restore a couple of weeks ago to fix a bad boot file, and now the programs run like crap.  I have noticed that the person who worked here prior to me never uninstalled the previous versions of Design Standard.  So I am just tyring to figure out a way to speed things up because this should not be going this slow.
    My computer specs
    Windows XP Professional
    2.83ghz Quad Core Intel Processor
    4GB RAM (tech  under since XP pro only supports 3.3)
    GeForce 9800 512MB Vid card
    All my drivers have been updated and I did a registry cleaner which did not fix the problem.  So any help would be greatly appreciated!
    Thanks

    Imo, you should establish a rather strict
    color management strategy (examples):
    1. Define in Photoshop:
    RGB: AdobeRGB(98)
    CMYK: ISOCoated
    Gray: Black Ink ISO Coated (Custom profile)
    Spot: Black Ink ISO Coated
    2. Distribute this profile set by Bridge
    3. Convert RGB images in Photoshop to CMYK
    4. Define Color space in Illustrator as CMYK
    5. Open the Photoshop file or the Tiff file in
    Illustrator: here it looks as expected.
    Problems: the CMYK file contains an ICC-profile
    which is different to the global CMYK-definition.
    Now it depends on the CMS strategies, and that's
    the point where I'm usually giving up.
    Best regards --Gernot Hoffmann

  • How to swap between iTunes accounts

    I have 2 iTunes accounts on the one computer. How do I easily swap between the accounts? The only way I have been able to do it is by deauthorising the computer for one of the accounts? Suggestions

    Both accounts can be authorised on the same iTunes at the same time. You can swap between them if you want to make purchases with the other account by logging out of the current account (Store > Sign Out) and then logging in with the second account (Store > Sign In) - only one account can be signed in at a time.

  • Swapping between music, pictures, transitions etc - Rests your position...

    Aside from the fact that video effects are gone, which takes out almost all the creativity of iMovie... I have a gripe that is really, really annoying. When you swap between adding music, pictures, and transitions iMovie 08 resets where you were in any other item... So if your adding a few photos and you want to bounce between adding transitions to them or sound, you loose your place. This is awful if you have a huge library of either photos or music, you're forced to scroll all the way back through to get to what you were working with. I rushed out to buy iLife 08 specifically for iMovie, this is such a let down...

    Windows is absolutely passing the buck, and what is more, they are doing it in hopes that we will pass them more bucks- Windows 7 offered a program (for free) that was called windows media center.  Windows 8 does not have this however, they will suggest
    that it you pay an additional $99.99 to upgrade to windows pro and THEN another $9.99 for windows media center, all will be fine in the media sharing department....
    UNTRUE-
    I have Windows 8 and fresh out of the box, I got an app called XBox Smartglass with my new (and supposedly improved) OS, Windows 8.  Therefore, it is an OS issue, not a manufacturing issue or an Xbox issue or where ever else you may want to stream your
    media to.
    However, for whatever reason, I have been able to share media without upgrading or paying anything with not one, but two Xbox's...It has something to do with permissions, sharing, devices, networks...but don't ask me what, I truly, truly wish I could help
    everyone...however, I just do not want windows weaseling more money out of already high paying customers. 
    Sometimes I right click on a pie of media and I receive a 'Play To' option.  Sometimes that options offers me to 'Play To' 'The Dark Box' or 'Xbox 360' or one but not the other or; my personal favorite- the 'Play To' option is gone and the only option
    is to 'Open With' the various media outlets on my PC but not stream it anywhere...and there is no rhyme or reason or setting that makes this consistent.
    I wish I could help more, but I leave you with this- It is possible, It does have to do with Windows OS, and you do not have to pass anymore bucks their way to make it happen...

  • Cannot swap between windows in windows menu

    Since some time (during which I have not installed any plugins) I cannot swap between windows listed in the windows menu. The window I want to access stays in the background.
    Permissions repair and restart have not fixed the problem.

    Hi,
    Please make sure that your Telnet client supports the same authentication types as the Telnet server to which you are connecting, you can view this link to configure the authentication method
    Configure How the Client Authenticates to a Telnet Server
    http://technet.microsoft.com/en-us/library/cc732082(v=ws.10).aspx
    Error Message: Telnet Server allows NTLM authentication only
    http://technet.microsoft.com/en-us/library/cc731891(v=ws.10).aspx
    Yolanda Zhu
    TechNet Community Support

Maybe you are looking for

  • Non-Database Item Sort Using Multiple Block Values

    I need to sort the result set of a block based on a calculated item. I found several messages addressing this, however they all speak to using the columns from within the same block as input variables to the function used to calculate the non-databas

  • I can't add songs to my ipod nano 5th gen. Get a sync error (13019)

    Today I connected my 5th gen. nano to my windows computer to add some songs to my library. When I connected it I got a pop up saying windows had added my ipod drive to the computer. I dont know why it did this because it was already added; I've had m

  • Clock feature

    Is it possible to set multiple alarms and make them repeat on an ipod Nano? Basically, does it have the same features/setup as the clock on an iPhone? This is for the newest generation iPod Nano. I have looked in the user guide and didn't think it wa

  • New features in 11.5.10

    Could please anyone tell me how can I obtain info about new features per module 11.5.10 vis a vis 11.5.8?

  • Scrolling Favorites in Safari Browser

    Hi there. Please forgive my poor english-knowlege. I do not know since when I got aware of the fact that when I opened a website I saved in the "Favorite List" of the Safari-Browser and then return to the Favorite List, i have to scroll down the whol