Quick if operator question

If a and b contain a number each, what should
if(a>0&&b6=0)be?

= --> assignment operator
example:
a = 0;
a = a + 1
// a now equals 1; it doesn't solve the algebraic equation or anything
== --> comparison operator, returns boolean value
example:
if(a == 0)
// do something
Now you can correct it.
theAmerican

Similar Messages

  • Quick SAP Script question New Page Print

    Quick SAP Script question
    I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
    I need to do this from within the form as the print program is SAP Std.
    Any idea how I can prevent the new page from printing?
    i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?

    Hi,
    To trigger a new page, there is script ediotr command NEW-PAGE.
    so find where is that command is triggered and use the below code for trigger it on any specific condition....
    if &condition& = 'True'
    /*  NEW-PAGE
    elseif
    /: NEW-PAGE   
    endif
    so it means if condition is satisfied your new page will not work.. else it will...
    Hope you got it...
    Try this..
    Best luck..
    Regs,
    Lokesh.

  • I have what is hopefully a quick and easy question. I kno...

    I have what is hopefully a quick and easy question. I know almost nothing about this stuff so go easy on me . All I need to do is find out if my DHCP is enabled. I'm having problems with my Xbox 360 and one of the possible problems is this DHCP thing. However I have no idea how to find the settings for my router on my computer. If it helps I have a Wirless model BEFW11S4. Thanks in advance for any help.

    You need to access your router to check if the DHCP is on.  To access the router open your browser and type in http://192.168.1.1 into the address field and hit enter.  That should open the routers log on screen and by default the user is left blank (some routers it is admin) and the password is abmin.  If you changed your routers password as you should for security reasons then use that password.  That will bring you to your routers user interface and on the main set up page should be your DHCP.
    Richard Aichner (Ikester)

  • Quick Flash/operating system question

    Is it THAT necessary for me to upgrade one of the systems
    here to Win XP for Flash 8? Can I get by with the Win 2000
    Professional? I kind of need to know NOW...
    Thanks,
    Jacki

    Jacki in Atlanta wrote:
    > Is it THAT necessary for me to upgrade one of the
    systems here to Win XP for Flash 8? Can I get by with the Win 2000
    Professional? I kind of need to know NOW...
    riht after your post there is another that starts with "In
    Flash-8 on Windows-2000"
    so I guess it does work :)
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Conditional operator question?

    Hello,
    Quick question, are we not allowed to use the conditional operator this way... see code below:
    char volatile ProgString_[] = "\
    {Fan code} \
    12 <Limit11> [C1_ACM2]_[B1] _AND_ \
    bla bla \
    unsigned char UPC_SYSZ_EndOfTable(unsigned long i){ // Find the double '*' in string
    char volatile *u;
    u = &ProgString_[i];
    if(!(strncmp("*", u, 1))){
    i++;
    u = &ProgString_[i];
    if(!(strncmp("*", u, 1))){
    return TRUE;
    else {
    return FALSE;
    else
    return FALSE;
    void UPC_SYSZ_Parse(){
    unsigned char volatile iOCntr = 0;
    unsigned long volatile i;
    for(i=0; i<200; i++){
    (UPC_SYSZ_EndOfTable(i))?(break):(continue); //<<<<< Invalid expression ??
    I would of used the following compact line:
    (UPC_SYSZ_EndOfTable(i))?(break):(continue);    //<<<<< Invalid expression ??
    to periodically test the end of the string by fetching the "EndOfTable() function and evaluating if the double star is detected.
    If detected, I would break out of the for loop, if not then I would continue.
    Is it possible to do it this way?
    thanks for all help!
    r

    Think of it along the lines of each of the operands of the ternary operator must produce a value (which of course break and continue being statements cannot do).
    Based on your brief example here is what I would do
    for(i=0; i<200; i++){
    if (UPC_SYSZ_EndOfTable(i)) break;
    // doesn't make any sense to put more code down here anyway, so no real point to continue}

  • Quick CSS box question

    Hi guys,
    Firstly a very Merry Christmas to you all !
    I'm just getting to grips with converting all the text on my
    site to CSS and have a quick question.
    On some of my pages I add an 'Also see' links box aligned to
    the right - it's a CSS div tag thingy someone kindly talked me
    through once. All of my pages are built from a template with an
    editable region.
    My question is, can I add this box (perhaps with a standard
    'Also check out' title and then spaces for my links) at the
    template level? This will save me having to go to Insert>Layout
    Objects>DivTag on every page. I've tried simply adding this to
    the editable region of the template but it simply pushed the
    editable region box over to the right and then didn't appear on my
    pages
    Also, the links box would ideally appear about half way down
    my pages on the right...
    Hope you can help, many thanks in advance!
    James
    Here's an example page where I have manually added my link
    box on the right of the page...
    http://www.fyrne.com/james_journalism/Pages/Mosaic_of_the_med.html

    Your CSS link implies that the CSS file is in the Templates
    folder. You
    shouldn't have anything there other than the template (dwt)
    files
    themselves. Please move it out to any other location in your
    site.
    <link href="../../Templates/Box.css" rel="stylesheet"
    type="text/css">
    Changes made to template editable regions would not propagate
    to existing
    child pages - that's why you aren't seeing that addition in
    them....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "JamesFryer" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi guys,
    >
    > Firstly a very Merry Christmas to you all !
    >
    > I'm just getting to grips with converting all the text
    on my site to CSS
    > and
    > have a quick question.
    >
    > On some of my pages I add an 'Also see' links box
    aligned to the right -
    > it's
    > a CSS div tag thingy someone kindly talked me through
    once. All of my
    > pages are
    > built from a template with an editable region.
    >
    > My question is, can I add this box (perhaps with a
    standard 'Also check
    > out'
    > title and then spaces for my links) at the template
    level? This will save
    > me
    > having to go to Insert>Layout Objects>DivTag on
    every page. I've tried
    > simply
    > adding this to the editable region of the template but
    it simply pushed
    > the
    > editable region box over to the right and then didn't
    appear on my pages
    >
    >
    > Also, the links box would ideally appear about half way
    down my pages on
    > the
    > right...
    >
    > Hope you can help, many thanks in advance!
    >
    > James
    >
    > Here's an example page where I have manually added my
    link box on the
    > right of
    > the page...
    >
    http://www.fyrne.com/james_journalism/Pages/Mosaic_of_the_med.html
    >

  • A Few Quick Lenovo T410 Questions

    Hi all,
    I posted here quite a while ago about my 9 cell battery in my integrated graphics T410 only lasting up to 5 hours. I have yet to send the notebook in simply because I haven't been able to go without it. However, I plan to do so at the start of this next week. Before I do so I was going to swap out the 500GB 7200.1RPM hard drive I installed with the 250GB 5400RPM drive that came with the notebook to see if it was an excessive power issue with the drive.This is where my worries are.
    When I inserted the 500GB hard drive into the drive tray, I had a very hard time screwing the tray in place. The screws were damaged in the process, and I have worries about taking them out, and putting them back in again. I am still under warranty.
    Am I able to recieve a new set of these screws?
    Also, 2 quick questions
    I plan on moving my 500GB drive into the slot where my optical drive is now, and putting a SSD in wheremy 500GB drive is located now. Do I need to buy anything special to make this work?
    I also plan on upgrading from the 2x2GB RAM I installed myself (machine came with 1x2GB), to 4x2GB. Is this RAM compatible?
    Thanks in advance.
    Solved!
    Go to Solution.

    FirstTimeLenovo wrote:
    Am I able to recieve a new set of these screws?
    Hi,
    I think only lenovo techs can determine or tell that, but my guess is that if they feel they need to be replaced, then they probably will.
    FirstTimeLenovo wrote:
    Also, 2 quick questions
    I plan on moving my 500GB drive into the slot where my optical drive is now, and putting a SSD in wheremy 500GB drive is located now. Do I need to buy anything special to make this work?
    I also plan on upgrading from the 2x2GB RAM I installed myself (machine came with 1x2GB), to 4x2GB. Is this RAM compatible?
    Thanks in advance.
    1. Yes, you would need this:- http://www-307.ibm.com/pc/support/site.wss/MIGR-73​170.html
    2. Yep, the RAM will definitely work.
    Hope this helps.
    Maliha (I don't work for lenovo)
    ThinkPads:- T400[Win 7], T60[Win 7], IBM 240[Win XP]
    IdeaPad: U350
    Apple:- Macbook Air [Snow Leopard]
    Did someone help you today? Compliment them with a Kudos!
    Was your question answered today? Mark it as an Accepted Solution! 
      Lenovo Deutsche Community     Lenovo Comunidad en Español 
    Visit my YouTube Channel

  • Save As operation Question

    Scenario - I have a web application that generates Excel documents that can be downloaded or opened directly. The web pages are a mixture of both ASP.NET and Classic ASP so the Excel file is actually generated as an HTML table. When a Save or Save As operation
    is done when the .xls file is downloaded a specified file name passed from the web page is used in the save operation. When you open the Excel file after saving Excel displays "The file you are trying to open "filename.xls" is in a different
    format than specified by the file extension...Do you want to open the file now?" informing me that the file is not a true xls file. When you continue with the opening the file it opens normally with no issues.
    Question or Possible issue: Taking one of these files after it has been saved to a location on the computer outside of the download folder, and perform a Save As operation to change the format to a true .xls file the theExisting File Name is not displayed in
    the File Name field. The Save as type defaults to Web Page which is understandable due to how the file is generated.
    I've tried this with actual Excel spreadsheets and the File Name field on the Save As operation is populated with the current name of the file and keeps it even if you change the Save as type.
    Main Question: Is there a setting somewhere in Excel to prevent the loss of the File Name?

    Hi,
    According to your description, the "The file you are trying to open "filename.xls" alert is from a feature called Extension Hardening, and you can find more information about it here. 
    http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/03/11/excel-2007-extension-warning.aspx
    As you said and tested, Excel will retain the current file name in file name field when we save/save as the file. It's a default behavior. I suppose that the issue may be caused by the Excel that generated by web application.
    I recommend we try the 3 workarounds:
    1. Modify the ASP.NET program and make the file change to new excel format when generated
    Please see the thread:
    http://stackoverflow.com/questions/940045/how-to-suppress-the-file-corrupt-warning-at-excel-download
    2. Use "Office Migration Planning Manager" to convert the XLS to XLSX format.
    The toolkit also contains the Office File Converter (OFC), which enables bulk document conversions from binary to OpenXML formats. 
    Overview on Technet
    Download Link
    3. Use a macro to convert batch of XLS file to XLSX file and retain the file name.
    Sample code:
    Sub ProcessFiles()
    Dim Filename, Pathname, saveFileName As String
    Dim wb As Workbook
    Pathname = "C:\Users\myfolder1\Desktop\myfolder\Macro\"
    Filename = Dir(Pathname & "*.xls")
    Do While Filename <> ""
    Set wb = Workbooks.Open(Pathname & Filename)
    saveFilename = Replace(Filename, ".xlsx", ".xls")
    wb.SaveAs Filename:=Pathname & saveFilename, _
    FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
    ReadOnlyRecommended:=False, CreateBackup:=False
    wb.Close SaveChanges:=False
    Filename = Dir()
    Loop
    End Sub
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Quick photo ordering question...

    I am in the process of ordering a bunch of photos, and I have a question: When I select the photos, say 25 of them, then select "Order Prints", I see all of my photos in a list, but I have to select the quantity for EACH PHOTO! Is there ANY way I can just say "print 1 4x6 of all pictures"? I will be doing more photos and I hate to have to go to each one if I have an album of 40-50 pictures.
    Thanks in advance!
    Ken

    Up in the top right corner, you should see a Quick Order label and a double-arrow button. Click the up button once and it will do exactly what you want.

  • QUICK VIEWER RELATED QUESTION

    Hi
    Can I add a new column to my quick viewer report that will display TOTAL of existing columns in the report.  What is the method? 
    How can I make my quick viewer report to open a document when I double click a field value.  I see it happening in VF05 , va05 (lists).
    Any advice appreciated.
    Thanks,
    Surya

    Okay, Ceci, I don't know as much about this stuff as
    you obviously do, so I'm really sorry I offended you
    with my newbie faux pas. Do you realize that in the
    time it took you to rip on me you could have already
    answered the question? Thanks for the sentiment.I answered it the best I could: write a small program and try it.
    With MSAccess, my understanding is that if you have a string with length under
    255 it's type is TEXT, and over 255 it's MEMO... is this right?String: max. 255 chars
    Memo: max 64000 chars.
    Sez the Access help.
    But what does this string look like if the column will hold strings of text longer
    than 255? Try it. Might puke, might truncate the String, might autoconvert. I don't know. You'll see.
    Do I only specify the size like TEXT(400), or do I list the type like MEMO(400) or what?If you expect it to be > 255 chars, why not simply define the field as Memo right away? I doubt you can write a Memo to a textfield.

  • Quick dynamic update question

    Hi all,
    We've just got Color at work and I'm pretty impressed with it. Next they'll be bundling PFTrack or Boujou for free! Just a quick question though..
    If I send an edit from FCP to Color, do some grading (including keyframing), and then get a revised EDL through or have to alter the cut in FCP will Color be clever enough to automatically or otherwise update the clip timings? (assuming I'm still working in the original timeline)

    Qualified yes.
    Apple manual:
    Page 79.
    But there are a lot of release notes regarding re-rendering material. Beware.
    JPO

  • Quick time zone question

    I am using Java to do some date/time formating and have a quick question.
    Is Indiana's timezone "IET"? I know most of Indiana doesn't observe daylight savings time, but they are eastern when things are normal... IET seems to produce the correct time, but I just wanted to double check before I make any assumptions. Thanks for the info.

    Actually it is "America/Indianapolis". Those three-character abbreviations have been deprecated because they are ambiguous (both North America and Australia have "eastern" times, for example).
    If you have a Java 1.4 SDK, then have a look in this directory:
    C:\j2sdk1.4.1\jre\lib\zi
    (modify according to where you actually installed the SDK); each file in that directory tree represents a timezone.

  • Quick itunes search question

    Hey everybody quick question. I cant for the life of me find Forgetting Sarah Marshall in the iTunes store, when ever i search for it it comes up with a movie called 11:14. Does the iTunes store not have it? Any info greatly appreciated.....

    I'm 100% sure they USED to have it...I destinctly remember passing it over SEVERAL times and now when I want to buy it, it's not found anywhere in my US iTunes account search!!!! Where did it go?????!!!!!

  • Quick qmaster sharing question

    Just a quick question. Should I turn on and off sharing for my 8 instance cluster as I get ready to use compressor and qmaster, or can I just leave it on all the time. Does it slow other things down if sharing is enabled all the time?
    Thanks,
    Ken
    Message was edited by: MoDawg73

    You should be ok with just leaving it on. As long as QMaster isn't encoding anything, then it just sits there.

  • A quick clear_block(no_validate) question

    Hi guys,
    As the title suggest, I have a quick question about clear_block(no_validate). Basically I have a master detail relationship and when I am on the detail block (which is on a seperate canvas than the master block) I have a cancel button which basically does clear_block(no_validate) and then navigates the user back to the master block. My question is that if the user now saves something on the master block will the information in the detail block be wiped clean? ie if the detail block contained information and when I navigated to it i decided I didnt want to make any changes to that information so I hit cancel which does clear_block(no_validate) will the whole detail block be wiped clean and null values saved to the database if the user saves on the master block?
    Thanks for any help I may get.

    786733 wrote:
    Thanks for the response, I appreciate it, and hopefully this next question wont sound stupid, though it probably is a stupid question lol. Ok so I have just pressed cancel on my detail block which has: flushed the detail block without validating the changes, committing the changes, or prompting the end user. I then go to my master block and make changes and save them. Since my detail block has been flushed and all data cleared when I commit my changes from my master block am I committing the cleared down values (ie, null values) from the detail block?
    Thanks again.Hi,
    Straight Answer
    When you clear any block with
    clear_block(no_validate);Nothing will save or commit on that block for the corresponding master record. Any change on master will save if you not clear the master record as well.
    Hope it's clear..
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

Maybe you are looking for