The questions using the & & operator logic

Hello

I have a dialog box that has 3 buttons on it.

2 buttons are used to open selection of the folder windows and the last button is an OK button to the script action once 2 records have been selected.

Here is a snippet of my code

BTNg.OKBtn.enabled = false;
  
DFgroup.DFBtn.onClick = function(){   
     DFdefault = new Folder(DARKinputFolder);   
     DFdefault = Folder.selectDialog('****Please Select The Folder Where Your DARK FRAMES Are Located****',DARKinputFolder);
     if ( DFdefault != null ) {
  DARKinputFolder = DFdefault.fsName.toString()
                       DFgroup.DFlabel.text = DARKinputFolder;
                       FolderChecker()
                     
  }
     }

LFgroup.LFBtn.onClick = function(){   
     LFdefault = new Folder(LIGHTinputFolder);  
     LFdefault = Folder.selectDialog('****Please Select The Folder Where Your LIGHT FRAMES Are Located****',LIGHTinputFolder);
      if ( LFdefault != null ) {
  LIGHTinputFolder = LFdefault.fsName.toString()
                       LFgroup.LFlabel.text = LIGHTinputFolder;
                       FolderChecker()
  }
      }





function FolderChecker(){
    if (DARKinputFolder !='' && LIGHTinputFolder !=''){// && LFdefault != null){
    BTNg.OKBtn.enabled = true;
    }
}

Ok

with a bit of violin it looks as if I had a result, here's what I used:

function FolderChecker(){
   if (DFdefault.exists && LFdefault.exists){
    BTNg.OKBtn.enabled = true;
    }
}

This seems to work perfectly.

Thank you for pointing me in the right direction.

Tags: Photoshop

Similar Questions

  • Please explain CVI question #335358: using the operator of bit-shift twice on the same line of code produces incorrect results

    Hello

    I just stumbled on http://www.ni.com/white-paper/12323/en#335358_by_Category.

    With the help of the bit-shift operator twice on the same line of code produces incorrect results.
    Workaround: Separate the operations of shift of two bits in two distinct lines of code.

    Reported Version: 9.0    Solved Version: N/A    Added the: 14/02/2012

    Could someone please explain what kind of construction causes such a question?

    I have not noticed problems again and not have not noticed or found a thread about it.

    Thank you.

    The reported scenario looks like this:

    unsigned int a = 1, b = 62;
    unsigned  long long result = 1ULL << a << b;
    

    The problem arises because of the temporary variable used when do two little is placed in the same line. This separation into two lines will produce correct results:

    unsigned int a = 1, b = 62;
    unsigned  long long result = 1ULL << a;
    result = result << b;
    
  • Question about the operating system reinstall on Portege R500

    I bought the version of 64SSD R500, and for some reason any that it struck me to check if there was a DVD player to this topic.

    It was rather annoying.

    I know it's easy to buy an external drve to copy software etc on the Portege, so this isn't so bad.

    However, I'm considering a re - install, possibly to XP, but maybe just to reduce the amount of repulsive of bloatware I had on my computer when I turned on.

    Now to the crux of the matter: if I use an external USB drive, I need USB drivers. If I delete the operating system, which will remove the drivers.

    Finally, my question is: how in the name of hell is someone supposed to put a new installation in a R500?

    Thank you for your patience.

    I understand everything up to the point with the bloatware.

    But what I Don t understand is: what do you want with a USB hard drive? I hope that you don t average a USB - HDD (it s a bit confusing). ;)

    Usually, you can use all the drives without the need of some drivers because the machine offers you the ability to boot from a USB device after switching on of the machine and see the Toshiba logo...
    You need only press F12 and select the option to boot from an external USB CD/DVD drive. That's all.

    Welcome them

  • Microsoft Money - when closing down, it saves ok but there is a message saying that the operation cannot be completed. I then use the Task Manager to complete.

    I use Money version 1105, 2004 updated.  I have 2 qusstions-

    1. in closing down, it saves ok but there is a message saying that the operation cannot be completed.  I then use the Task Manager to complete.

    2. is there a version of Money that runs this file?  I tried Sunset but does not recognize my file.

    Any help would be great, thanks in advance

    Eric

    For any question on any version of Microsoft Money, ask http://social.microsoft.com/Forums/en/money/threads.

    Make sure your data and Money backup files are in Documents or another non-protected area, not the default money Program Files or changes and updates will not be saved.

    Unless you are in the USA, the version of Money 2005 (released in 2004) 14.0.120.1105 is the latest available. Sunset silver bed only U.S. data files.

    Installation file to Money 2005 International English QFE2 (not for USA, Canada, UK) from Microsoft, including stand-alone updates 1105, is available at http://www.microsoft.com/download/en/details.aspx?id=26922

    Money 2005 UK - QFE2 (the fixed standalone UK Money 2005 file) can be downloaded from the link to http://www.microsoft.com/download/en/details.aspx?id=26915

  • System was originally shipped with Windows 7, I had fixed it, but the operating system has been changed to XP. Can I use the product key on the side to reinstall Windows 7?

    Reinstalling windows 7 after re-start of windows xp

    I bought my Asus computer came with windows 7 installed, earlier this year, I encountered a problem with the blue screen to come and I was unable to fix it, when I had my computer repaired they changed the operating system to windows xp, I was wondering if with registration # or whatever is on the side if I could download and reinstall Windows 7

    If the product key on the side of your machine is for Windows 7 and where-ever you guessed it "repaired" installed Windows XP - the real question becomes where they got a product key for Windows XP?

    You have the installation media for the copy of Windows 7 OEM which is preinstalled on your computer?

    If not - you will probably need to contact Asus (this laptop?) over media restore and/or check to see if the "repair" left any which restoration method should have been used intact.

  • do I have to buy the new key to run the operating system on a virtual machine personal use? SOS. SOS...

    Hello

    I wanted to run vista on the same computer; but on a virtual machine. I wanted to know if I should buy a seprate key. I was perplexed because it is on the same computer at home. I wanted to use it for personal use as run the operating system on the virtual machine for programs to avoid viruses and use it kind of like a backup. I asked around only to meddle with the answers. Many people need to know the right answer to this question. Oh guys please keep this thread alive for others!

    Thank you

    Jamie

    Hello

    the rules of licensing are:

    One license = Installation and which includes computer

    the vista virtual machine installation will be a second installation requiring a second license of Vista

  • Calculate the use of operating rooms

    I received this question in an e-mail.

    I will post it here, as well as my own answer-, so that other people with the same problem can find and learn, and that responses can be given (here there are smart people who might have alternative solutions of large .)

    Here's the post with the question:

    ------------------------------------------

    Hi Kim,

    I'm stuck in a SQL query.

    I want to calculate the use of operating rooms. follwing is my data structure

    create the table room_usage
    (in_time DATE,
    out_time DATE,
    mr_no VARCHAR2 (15).
    room_no, NUMBER (3));

    insert into room_usage
    values
    (to_date('11-Feb-15 8:33:00 AM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 10:17:00 AM', 'dd-mon-RR hh:mi:SS am'),
    '00052740',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 10:56:00 AM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 12:36:00', 'dd-mon-RR hh:mi:SS am'),
    '00111780',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 12:56:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 2:46:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00111777',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 3:02:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 6:12:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00052713',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 6:51:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 7:57:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00052760',
    733);
    insert into room_usage
    values
    (to_date('12-Feb-15 8:51:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('12-Feb-15 9:57:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00082760',
    733);

    Select IN_TIME, OUT_TIME, (OUT_TIME - IN_TIME) * 24 * 60 stay, MR_NO, ROOM_NO
    of room_usage
    When trunc (IN_TIME) between February 11, 15 'and 12 February 15'
    order of in_time


    in_time out_time stay_min mr_no room_no

    11 February 15 08:33 11 February 15 10:17 104 00052740 733
    11 February 15 10:56 11 February 15 12:36 100 00111780 733
    11 February 15 12:56 11 February 15 14:46 110 00111777 733
    11 February 15 15:02 11 February 15 18:12 190 00052713 733
    11 February 15 18:51 11 February 15 19:57 00052760 733
    12 February 15 20:51 12 February 15 21:57 00082760 733

    But I also want to get time slots to USE NOT. This is the result I want

    in_time out_time stay_min mr_no room_no

    11 February 15 12:01:00 AM February 11, 15 08:32 511 no use of 733
    11 February 15 08:33 11 February 15 10:17 104 00052740 733
    11 February 15 10:18 11 February 15 10:55 37 no use of 733
    11 February 15 10:56 11 February 15 12:36 100 00111780 733
    11 February 15 12:37 February 11, 15 12:55 18 no use of 733
    11 February 15 12:56 11 February 15 14:46 110 00111777 733
    11 February 15 14:47 11 February 15 15:01 14 no use of 733
    11 February 15 15:02 11 February 15 18:12 190 00052713 733
    11 February 15 18:13 February 11, 15 18:50 37 no use of 733
    11 February 15 18:51 11 February 15 19:57 00052760 733
    11 February 15 19:58 11 February 15 23:59 241 no use of 733

    How can I get that.

    A problem like this is easy to solve with the model clause:

    Select in_time, out_time, round ((out_time-in_time) * 24 * 60) stay_min, mr_no, room_no
    of room_usage
    model
    partition (room_no, trunc (in_time) d)
    dimension (row_number() on rn (partition room_no, trunc (in_time) order of in_time))
    measures (in_time, out_time, mr_no)
    rules iterate (1000) until (presentv (in_time [iteration_number + 1], 1, 2) = 2)
    (in_time [iteration_number + 0.5] = presentv (out_time [iteration_number], [iteration_number] out_time, trunc (in_time [iteration_number + 1])) + interval minute '1'
    , out_time [iteration_number + 0.5] = presentv (in_time [iteration_number + 1], in_time [iteration_number + 1], trunc (out_time [iteration_number] + 1))-'1' minute of interval
    , mr_no [iteration_number + 0.5] = 'no use '.
    )
    order of in_time

  • Facing the question with the operation of CreateWithParams

    Hello

    I use Jdeveloper 11 g (11.1.2.1.0). My requirement is duplicated a few column values of the above line.

    I created ADF Table and used the CreateWithParams of the operation. It works. But the question is, always, is to copy the values from the first row of the table and it is to insert the new record at the beginning of the Table of the ADF.

    I want to duplicate the value of the current record position and insert the folder just below.

    I spoke * [ADF Code corner 013. How to declaratively create new rows in the table based on the existing line content | http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/13-create-with-params-169140.PDF] * steps. All of the suggestions.


    Concerning
    Surendra

    Hello

    + 1. As soon as the new record is created, the validation is going to get fired. He started the error message saying DeparmentID value is required. How to stop this. +

    If the attribute is required, then it must be provided. You cannot create a folder without providing the required attributes. He would miss at least when persistent change in the database

    + 2. The new line is be created above the currently selected line. How do I create the line below the currently selected line. +

    To insert the line at a specific position have a peek here, which adds the row to the end

    http://adfbugs.blogspot.de/2010/04/inserting-new-rows-as-last-row-of-table.html

    In your case - you use CreateWithParams, you need get the current line, then create your new line, remove the new line (as it is inserted in the wrong place) and then add back a rank after the current. Indeed, it is easier to achieve if you manually created the line. However, its possible

    Frank

  • question about the operation of the ASM

    Hello

    I use as storage oracle 11 GR 1 option matter and ASM. the sys user is Administrator of the ASM, but I am not able to access ASM instance with the sys user. If I didn't know oracle, then I have access instance asm, asm dg operation etc, I thought that ASM admin is one who can perform an operation on the instance asm and asm dg etc that I should always user use 'oracle' for the operation of the DSO. cant I use user "sys" to it. Please share your opinion on this.


    Thanks for your help,

    user11305560 wrote:
    I export ORACLE_SID variable. But if su do oracle then only i can do surgery ASM.

    Yes, and that's because the user of the OS who need all permissions to administer the instance ASM 'oracle '.

    If I didn't know sys, then it does not allow me to do. sys is a Director of the DSO, so I thought that it should also be able to perform the operation ASM.

    Yes, it's because "sys" is (in your case is obviously) user OS that do not need all permissions to administer the ASM instance.
    Then, when you're OS user oracle, unlike when you're OS user sys, you are able to connect to the DSO with the SYS user database

    My question is, can only the user oracle ASM operations do.

    Each user of the operating system with appropriate permissions can do

    Thank you.

    [Privileges ASM instance | http://download-uk.oracle.com/docs/cd/B28359_01/server.111/b31107/asminst.htm#CHDEDIID]

  • How can I use as an operator as the operator in Oracle 8?

    Hello!
    I have some problems with SQL. I have the varchars group, for example, the number of accounts ('1001023', ' 1002023', 2105089'), some of these accounts can be like this 210608_.
    Question: how to write my select conditions using like operator. For example:

    Select * from z #account one
    where a.c_no in ('1001023', '1002023', '2105089', '210608_'). But this example does not work correctly.

    the second example is also incorrect:
    Select * from z #account one
    where a.c_no in ('1001023', '1002023', 2105089') or
    a.c_no as '210608_ ';
    because I have more than 50 accounts such as "210608_", it is not comfortable to write a lot of conditions.

    Please, help me.

    Don't know if dbms_debug_vc2coll is already available in 8i, but if yes you can do

    select a.id, a.cls_gl_no
      from z#account a, table (sys.dbms_debug_vc2coll ('73390__',
                                                       '220919_',
                                                       '6010000',
                                                       '1151108'))
     where cls_gl_no like column_value
    

    If there is no dbms_debug_vc2coll you probably create your own collection and use this one:

    create type my_coll as table of varchar2(100)
    

    So it will be

    select a.id, a.cls_gl_no
      from z#account a, table (my_coll('73390__',
                                                       '220919_',
                                                       '6010000',
                                                       '1151108'))
     where cls_gl_no like column_value
    
  • Why I get this trying to empty the Trash: the operation cannot be completed because the item "IMG_0645.jpg" is in use

    After selecting and dragging some photos of Photo on the desk I have their attached to an e-mail and sent them to the coast. Then I selected the 5 photos on the desktop and put them in the trash. When I tried to empty the trash later I received the following message: the operation cannot be completed because the item "IMG_0645.jpg" is in use.

    Aren't these photos on the desktop 'copies' of the originals in the Photo?

    All wise users out there with an answer?

    stop, disconnect all external devices

    Restart your computer in safe mode

    Try safe mode if your Mac does not end commissioning - Apple Support

    empty the trash after checking the files in there are of no use to you

    arrested again

    Reconnect the external devices

    reset.

  • Use the 'Open with' dialog of the operating system

    Whenever I have right click on a file in Xubuntu and choose "open with another application...". "the next dialog box is presented by the operating system:

    https://support.CDN.Mozilla.NET/media/uploads/images/2015-07-29-00-31-36-e5da3e.PNG

    That's nice and I like Firefox/Thunderbird to the same behavior. But if these applications do not have a default application assigned the MIME type of that the following dialog box appears:

    https://support.CDN.Mozilla.NET/media/uploads/images/2015-07-29-00-31-45-80c2c1.PNG

    I don't want to add MIME types to FF, I want to change the window/dialog box that appears when I want to open a file with an application 'other '.
    Is it possible to say that by default, the operating system 'Open with' dialog box should be used?

    Thank you.

    Concerning
    Tim

    you could be wrong here - that points to https://bugzilla.mozilla.org/show_bug.cgi?id=1129873 , that will be fixed in firefox 41 (I have not read all the details it y still)

  • The operation cannot be performed because the "Firefox" element is in use.

    Whenever I try to download the latest version of Firefox on my mac, I get the following error:

    "The operation cannot be performed because the"Firefox"element is in use."

    I close Firefox and still get this error. I tried this guy 100 times and may not know how to solve this problem. Help!

    I have Mac OS X 10.6.8 v.

    Download the full Firefox installation program and save the file to the desktop
    https://www.Mozilla.org/en-us/Firefox/all.html

    If he has problems with the update or with the permissions then best is to download the full version and trash the version currently installed to do a fresh install of the new version.

    Download a new copy of the Firefox application and save the file to disk on the desktop image

    Your personal data are stored in the Firefox profile folder, so you will not lose your bookmarks and other data to personal when you uninstall and (re) install Firefox.

  • My Macbook pro does strange rattling when I watch movies on Amazon using the Opera browser.  There also seems to be hot.  What is c?

    My Macbook Pro does the rattling when I'm streaming videos on Amazon using the Opera browser.  There also seems to be hot.  How can I fix it?  It's the browser?

    It is normal for it to become hot streaming videos. It is not the browser, but you can test by using a different browser. In regards clicking sounds that could be a hard drive (if your model has one) or a fan. If there's something to fix it should be taken for repair. You can make an appointment at the Apple Store - Genius Bar store.

  • Laptop HP 15-af157na: new laptop - how do I back up the operating system until I use?

    You just bought a laptop and PC World told me to back up the operating system before you start to use it on a pendrive of 32 GB, but because he wanted to sell their service, he refused to give me any indication on how where to start!  Should not be difficult.  Stupid how they do not include the cs as they did.

    Someone help please?

    Thanks for the comments.

    Glad to have been of help

    Feel free to post back. Please mark the thread/post as accepted solution to possibly help other users who search the forum for similar problems. Good day!

Maybe you are looking for