What is the if statement i should use

Dear Experts,
I am very close in completing my problem, I ask you once more to aid me this.
I want to display an error but it keeps overwrite of what comes after
e.g. a=1
a= a+1 = 2
a= 10 then this acts as overwrite and changes it to 10
in my case the code is as follows,
if (upfile.whwtyp.equals("country")) {
system.out.println("upfile.ctyfun" +upfile.ctyfun);
system.out.println("upfile.asocod" +upfile.asocod);
system.out.println("upfile.Err" +upfile.Err);I am thinking of putting the if statement here but i not as easy as i thought
whwbean.status=upfile.err; This is the overwrite to display the error
I have tried if (upfile.err=asocod= valid=0 etc. but these dont work often it says it is a string when valid=0 is a integer.
Please help, even a little words of thought will push in the right direction.
Many thanks
Ace Wong

Hi Ace,
If I understand you correctly, you want to store an integer value (upfile.Err) into a String (whwbean.status).
If so, then use this:
whwbean.status = Integer.toString(upfile.Err);Hope this is what you need,
Chris.

Similar Messages

  • I have a OS X 10.7.5  what is the next upgrade I should use?

    I have an OS X 10.7.5  what is the next upgrade I should use?

    The only further OS upgrade available is Mac OS X 10.8.3, which is in the Mac App Store.
    (81815)

  • What is the request state value to shutdown VM using hyper-v?

    As we know request state value 3 is used to turnoff VM , what is the request state value to shutdown hyper-v VM ? Is there any different ways to shutdown hyper v VM using C# wmi?
    Regards
    Venki

    This forum is for Windows Embedded Standard 8. Please post to the hyper-V forum is here:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverhyperv
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • What are the things taken care while using multiple suites?

    Hi all,
    I have created a plugin which sends the current file path to an url,
    its working fine with debugging in Visual studio 2005 and while it is added to the Adobe Illustrator its works only once.
    That is its sending the file path only for one file. While i tried for the second time its not working
    I am using following suits in my plugin
    AIDocumentSuite
    AIFilePathSuite
    AIActionManagerSuite
    AIUnicodeStringSuite
    AIURLSuite
    I am using the "AIURLSuite" for calling the url and it is calling the url multiple times while its used alone, and its only working once with the multiple suites.
    What are the things taken care while using multiple suites? , is it neccessary to release all variables and the suites after completing the task?
    Should they released in the same order in which they are acquired?
    Thanks in advance
    Sreejesh K V

    Hi,
    The problem was with the "sAIDocument->GetDocumentModified(mod);"
    The "GetDocumentModified" is crashing after  executing once, i just removed that statement , and now
    i am forcefully saving the document with out checking the modification status!
    Its working fine now!
    Could you please tell me how can we lock a plugin , or a particular function in a plugin.
    There is any specific standard to use the GetDocumentModified function?
    Thanks and Best Regards
    Sreejesh K V

  • Where and what type of solid state drive should I buy for my early 2008 Mac Pro Desktop??

    where can I buy and what type of solid state drive should I use to upgrade my early 2008 Mac Pro Desktop??

    Rick,
    When you get a chance.... DSLReports is off line: their SQL server decided to take its indexes and access to data. Power. Not enough of the right kind of UPS. Same happened to StorageReview's "Drive Reliability Database" about 8-9 yrs ago.
    dslreports.com is offline
    Fri Apr 20 09:05:55 EDT 2012
    SSD: Loading CS5 plus other little monsters might matter.
    Lots of small I/Os
    latency of 1/100th where nanoseconds replace those "long" milliseconds
    System: Small and fast.
    DLLoyd even goes for short-stroking drives to get and maintain highest I/O
    The new 10k VRs hit 200MB/sec - I still use them and still find them useful, long lasting, feel responsive with whatever I ask of them. I know they get criticized and "cost too much"
    Just bought a new WD Black and yes it is better than the 2008 model I was using.
    600GB 10K $200 vs $150-220 for WD Black. your choice
    I can destroy a 7.2k drive, I have brought ever 10K drive back after a simple WD Extended Test in Lifeguard.
    I don't really care about $$/GB or I wouldn't have just bought Intel 128GB $149
    Database: the pros put the index in memory and page fix (virtual volumes in memory; cache; hold disk drive index in memory). Caching storage has been around for almost 40 yrs.
    Today you can use SSDs as front end cache to hold DB indexes and frequent data for web servers and such adn use slower secondary storage.
    SSD + SAS + 4TB storage
    Separating the system from data: #1 must
    Having data on array: been what I use
    I put a large photo library on 2 x 10K VRs vs SSD and couldn't tell much difference (SSD is soundless of course) But my WD Blacks make as much noise and run 15*C hotter than those 10K (not what you expect?)
    While 10K and 7.2K are in the 140-180MB/sec range, they are in 3.0 to 12.0 ms seeks, not  0.01 ms.
    People wonnder why shrink a drive to 2.5" (or why not go down to 1.8".
    How long does it take to reposition a disk head? how often? the 10K VR travels on outer tracks at 70 MPH. Really trying to fly off into space.
    It uses one step to find the "zip code" and then another DSP to find the "house."
    True of any high density perpendicular recording mechanism.
    And of course while the Raptor-X tried to find a home with famers, Cheetah buyers, the WD 10K line has more of a home where servers and small form factor drives - and 100s of them - can fit in a rackmount server I imagine.
    Anyway.... if SR and DSLReports can drop out of site due to power and hardware failure and loss... we can learn some and hope to protect our own data and investments.

  • GPO - Restricts the UI languages Windows should use for the selected user - not applying correctly on RDS 2012 R2

    Hi All,
    we have a Citrix XenApp 7.5 Farm with Windows Server 2012 R2 Servers and multiple (english, german, italian, spanish, french...) languages installed.
    I've created a GPO with settings 'Restricts the UI languages Windows should use for the selected user' to for example 'German'.
    Now when a user logs on to the server, the UI language is in german, but when i open Control Panel\Language: There is still English (United States) with Keyboard Layout: US, German.
    It seems that the GPO is not changing all settings correctly to german.
    Does anybody know what could be wrong?
    best regards,
    Siegmund

    Hi Siegmund,
    >>Now when a user logs on to the server, the UI language is in german, but when i open Control Panel\Language: There is still English (United States) with Keyboard Layout: US, German
    Based on the description, the policy setting should have been applied successfully. Here, did we logged onto the server via remote desktop services? If yes, what's the keyboard layout on the computer we used to RDP to the server? Before going further,
    I assume that this can be caused by Auto detect Remote Keyboard layout feature introduced since Windows Server 2008.
    Regarding this point, the following artcile can be referred to for more information.
    Windows 2008 R2 Language Bar keeps changing Keyboard Settings
    http://www.microsoftpro.nl/2011/02/24/windows-2008-r2-language-bar-keeps-changing-keyboard-settings/
    Note: For the above website is not hosted by Microsoft, the link may become invalid without notice and Microsoft doesn't guarantee the accuracy of the information.
    In addition, the following thread can also be referred to for more information.
    2008 R2 Session Host with MUI controlled via Group Policy
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/4e14955a-80f9-40aa-9741-fc8609f4ad09/2008-r2-session-host-with-mui-controlled-via-group-policy?forum=winserverGP
    Best regards,
    Frank Shen

  • Which return statement i should use.

    I have a problem regarding the return statement that i should use in the following programe.
    //Printing random letters without vowels
    public class Capitals {
      public char mymethod (){
         int counter = 0;               // Counter for number of capitals generated.
        int numberToGenerate = 20;     // Number of capitals to generate.
        char symbol = 0;               // Variable to store a random character.
        // While there are still letters to generate:
              while( counter < numberToGenerate ) {
          // Generate a random symbol between A and Z:
          // This relies on the fact that the codes for the letters are in a
          // contiguous sequence from 'A' to 'Z'. If we add 1 to 'A' we get the
          // code for 'B', if we add 2 we get 'C', and so on. Thus to create a
          // random capital letter from 'A' to 'Z' we can add a random integer
          // between 0 and 25 to 'A'.
          symbol = (char)(26*Math.random() + 'A');
          switch(symbol) {
            //Vowels ignored:
            case 'A':
            case 'E':
            case 'I':
            case 'O':
            case 'U':
              break;
            default:
              //Consonant displayed:
              System.out.print(symbol + " ");
              counter++;
              break;
    return symbol; // My Problem is here <<<<<<<<<<<<<
    public static void main(String args[])   {
    Capitals myCapitals=new Capitals();
    myCapitals.mymethod();
    }Can anyone kindly guide as to what return statement i should use in mymethod() so that it can be called in the main.
    thanks

    return types are not compulsory. there's a school of though amongst some 'C' programmers, that all functions should return something, even if the returned value is of no interest most of the time. some C compilers even force this behaviour, I think it's part of some standard but I can't remember now
    anyways, methods that have something to return need a return type, those that don't can be void. if you're invoking a method just to get it to do some work, it can probably be void, but if it's doing some computation for you you'll likely want to know the result, hence it must return something

  • What is the best external battery to use with a macbook pro retina?

    Looking for the best option here. What is the best external battery to use with a macbook pro retina?

    You should check your date of purchase against the manufacturer's warranty
    or guaranty since some of those better brands have some recourse should
    they fail within a specified time period. A good reason to save dated receipts.
    Since solid-state USB drives probably don't (all) use a wear-leveling software
    to equally utilize their recordable space evenly, it is possible that some of these
    may exhibit a failure in some sector areas due to excessive over-writing. If the
    ones you use do not have such a technology or an undercounted total capacity
    with a means to automatically write in other sections, you may have to consider
    manually using a disk utility to zero-overwrite and reformat them occasionally.
    Even so, that may only help a marginal flash or thumb drive work a little longer.
    Should a camera memory card fail you still may be able to attempt with margin of
    success, to +recover image files+ from it. re: http://www.cgsecurity.org/wiki/PhotoRec
    The standard default format they ship with works well for most file types; so if
    you aren't moving OS X or Mac app specific files around on a USB flash drive,
    the original format should be fine. Oh, you can use Disk Utility to attempt to do
    a repair; but in some cases you may have to reformat them, etc.
    {Some of the flash drive warranties or guarantees may vary from between regions;
    so if you have one with a '5 Year' guarantee in the US, other rules may apply in EU,
    or when you seek to replace an item under warranty outside of where it was bought.}
    Good luck & happy computing!

  • What are the advanteges and disadvanteges of using pl/sql over hibernate

    i knwo that pl/sql are well structure and provide a lot of functionalities with oracle databse , but my question is the hibernate might give some advnateges of scalability over pl/sql.
    so what are the advanteges and disadvanteges of using pl/sql over hibernate?
    and does oracle recommend using hibernate for connecting JSP with oracle 11i , or it is better to connect the JSP pages with oracle databse using pl/sql ?

    812643 wrote:
    but if i search for the diferencess then there are a lot of opinions about this ..., specially when they say that with hibernate you can integrate with any DB , and it provides object printed architecture, etc.All databases are not equal. This is a basic and fundamental fact. SQL-Server is not Oracle. Oracle is not SQL-Server. As it is the case with Sybase, Ingres, DB2 and other database products. They are all different. And there are some very core differences between them.
    So how would a product like Hibernate treat these database products with their differences? By using the lowest common denominator. Which means your expensive database product is dumbed down - and even MS Access will likely have better and more features.
    You also need to decide what is the "permanent" part in your architecture. What is going to the core? What is the expensive part? The app server (with Hibernate)? Or the database server?
    What are you likely to change next year? The app server server? Or the database server?
    In the vast majority of cases, the core is the database server. That is your biggest expense and investment. As it should be - as it holds that which is most precious to business, data. You want to ensure the integrity of that data. The accuracy of that data. Make sure that it can be easily backed up and recovered. Is flexible to use. Etc. Etc.
    The database server is the core - and that is where you need to realise your return on investment. By using the database server to its full extent.
    Hibernate does not do that. And in that respect, it is junk.
    Why does it not do that? Because many Java developers are totally and fully clueless about what database servers are and how to use them. And want to use them as little plug-in black boxes - bit buckets that are only there to provide a data persistence layer. Instead of using the database server to its full extent, they instead use Hibernate, and try to do their own "+database thing+" in the app layer - and do it poorly and with utter lack of any scalability. (and no, only ignorant Java heads think that scalability means throwing more money and h/w at it)
    My largest database processes billions of rows per day, every day, 356 days a year (between 350 to 450 million new inserts into a single table per day). And have been for several years now. It does so using PL/SQL. Using Oracle to its full extent. Then there are Java heads that cannot even design and code an app that effectively process 1% of this volume... and grasp at straws like Hibernate and other Java cr@p to "fix" this - when the actual problem is their total lack of ignorance in how to use and scale the database server.
    Hibernate is trash - and a symptom of Java developers's ignorance of database technology.

  • Apple TV: what are the specific settings I should adjust to?

    Hi, there
    I really need your help now. I use a DVD ripper to rip DVD to MP4 for Apple TV. I am trying to achieve quality that is close to a movie (m4v) from iTunes. What are the best settings to get this type of quality? I am not concerned with output file size, and I just want to get the very best quality I can. If so, what are the specific settings I should adjust to? The program I am using allows me to adjust video and audio parameters as below:
    Video parameters:
    Codec: h.264
    Resolution: 1280*720
    Bit rate: ??? (it is said Up to 5 Mbps, but what is the specific bit rate?)
    Frame rate: 24 fps
    Audio parameters:
    Codec: aac
    Sample rate: ???
    Bit rate: ??? it is said 16 to 320 Kbps, but what’s the specific figure?
    Audio channel: mono, stereo and 5.1 channel, which one should I choose?
    Following are the tech specifications I copied from Apple’s official website:
    Video formats supported
    H.264 and protected H.264 (from iTunes Store): Up to 5 Mbps, Progressive Main Profile (CAVLC) with AAC-LC audio up to 160 Kbps (maximum resolution: 1280 by 720 pixels at 24 fps, 960 by 540 pixels at 30 fps) in .m4v, .mp4, and .mov file formats
    iTunes Store purchased video: 320 by 240 pixels, 640 by 480 pixels, 720 by 480 pixels (anamorphic), or high-definition 720p
    MPEG-4: Up to 3 Mbps, Simple Profile with AAC-LC audio up to 160 Kbps (maximum resolution: 720 by 432 pixels at 30 fps) in .m4v, .mp4, and .mov file formats
    Audio formats supported
    AAC (16 to 320 Kbps); protected AAC (from iTunes Store); MP3 (16 to 320 Kbps); MP3 VBR; Apple Lossless; AIFF; WAV; Dolby Digital 5.1 surround sound pass-through
    And I have selected some parameters according to this, please see the above contents, but there is no info about specific video/audio bit rate, audio sample rate, and audio channel. I just wanna know if I want to watch the movie on my 1920×1080 TV, what are the specific settings I should adjust to?
    Any suggestion is appreciated. Thanks in advance.

    Well, then how about playback Apple TV uncompatible video files? I have some other video files(such as avi, mkv,not DVD), and I also have a video converter, i know i can convert them to m4v, mp4, or mov that supported by ATV,but the thing is that i still don't know the best specific settings for conversion. Any suggestion? Many thanks for your kind reply.

  • What's the maximum rights Devlopers have used.

    I my environment before me the DBA has given "SA" rights to the developers.
    Now I want to check what's the maximum rights they have used.
    So that I can show him this due to this reason I am removing your rights from sa. 
    Thanks

    There is an enormous difference between the rights granted to a developer in order to create/modify the objects in a database (and the roles/responsibilities of each developer with respect to the database and the system as a whole) versus the rights granted
    to either the application or the user of such an application. You have a management issue that will not be solved by trying to retro-actively identify what "has been used".  Someone with the appropriate authority needs to first assign roles to the developers
    (perhaps they all have the same roles, perhaps not) and then define the security needed to perform those roles.  Someone also needs to define the security needed by the application/users in order to accomplish the tasks that are implemented by the system
    and to which they have been granted access. 
    This is NOT something you do after the fact - doing so makes the job that much more difficult since developers generally take shortcuts (sometimes unintentionally), will use any feature to which they have access, and will assume that anything they can do
    the user/application can (and should be able to) do.  And you need to test your application with users who have been granted the appropriate permissions (and not using an administrator account).

  • What are the naming conventions we should follow while creating an object

    hi
    what are the naming conventions we should follow while creating an object in ABAP dictionary, i.e while creating zee table.

    Hi,
    Namespaces and Naming Conventions
    SAP has reserved name ranges for customer objects and SAP objects. Use these customer name ranges to make sure that your objects are not overwritten by SAP objects during the import of corrections or an upgrade.
    This documentation lists the customer name ranges for the different system objects.
    Only use the customer name ranges. If you do not keep to the name ranges for customer objects you may lose your development objects.
    SAP delivers a few system objects with names that fall within the customer name range. These objects already existed when the customer name range was extended from YY/ZZ to Y/Z. These objects are listed in table TDKZ.
    Regards

  • I'm a newbie to Blackberry - What is the first step to correctly using the instrument ?

     I'm a newbie to Blackberry - What is the first step to correctly using the instrument ?
    I just acquired my first blackberry phone  model-9810. What are the different simple  steps or the procedure that I should follow  to correctly use this instrument, i.e., telephone features first, internet features later. Your assistance to a newbie is highly appreciated.     All the best!  
    Solved!
    Go to Solution.

    Yes.
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • What is the latest OS I can use with a mac G5 with a dual 2.3 Ghz PowerPC G5 processor?

    What is the latest OS I can use with a mac G5 with a dual 2.3 Ghz PowerPC G5 processor? Everything on my computer has been running so slowly in the last few weeks. Have I finally outgrown OS 10.4.11? Would there be some other problem that would sudden make all my speed take a nose dive? I have 8.5 gigs of RAM...  Please advise!
    Thanks!  Matthew

    Everything on my computer has been running so slowly in the last few weeks.
    First open Console in Applications>Utilities, see if you have reapeating messages.
    How much Free Space do you have on the Hard Drive?
    At this point I think you should get Applejack...
    http://www.macupdate.com/info.php/id/15667/applejack
    After installing, reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 6 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 6 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    Trash old Log files.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files! :-)
    Disconnect the USB cable from any Uninterruptible Power Supply so the system doesn't shut down in the middle of the process.

  • What's the base latin character font used in Khmer MN font?

    I accidentally changed English text to the Khmer MN font. I liked the way the text looked, but I know it's not an English font. What is the actual (or similar) font used for the Latin alphabet characters? It's especially necessary because I want to type an "é."

    Groovysoul wrote:
    Khmer MN is a font that comes with Lion, so I'd assume Apple would be the maker
    You can see who makes a font by doing Preview > Show Font Info in Fontbook.  Very, very few of the fonts in OS X are made by Apple.
    It should work OK in a PDF as long as the font is really embedded.  I think Adobe Reader can tell you what is embedded if you open it with that.

Maybe you are looking for

  • External Drive attached to Time Capsule failing to work consistently

    This problem has been occurring since we started using an external drive attached to our Time Capsule as a backup destination for Time Machine over a year ago: Everything will be fine for a few days or weeks, but at some point backups stop working. T

  • Change country - update applications

    The story, I have an itunes account since ever... I used to live in Switzerland and used my account with location set to Switzerland and swiss credit card to buy applications for my ipod touch. Since i moved to Japan i changed location to Japan and e

  • Upper/ Lower case bug

    Hi, I have an issue when trying to create a report with upper and lower case variables. BW only allows me to bring in the upper or lower case variable, even though I can see both. This means I cannot bring back all information e.g I select BUSINESS W

  • Illustrator CS5.1 trial download extracting...taking forever!

    After I downloaded a trial version of Illustrator CS5.1, I got the following error message: illustrator_15_1_LS1.dmg    error -4960. Then the extracting process started & it's been going on for over an hour!  How can I stop this?  I even shut down my

  • Aperture 2 Hangs on Launch!

    As my machine model shows, Aperture 2 is as far as it will ever be able to upgrade, so I'm stuck with whatever latest release there is for Aperture 2. After I've started a resource-intensive task, and sometimes when I haven't, when I try and launch A