Code not working like I want

I have two date fields, "StartDate1" and "EndDate1".
When I make the EndDate1 value less than StartDate1, the "button" remains VISIBLE, but INACTIVE, and I can move on to the next field.
Why does the button remain visible, why is the button inactive, and how do I force the user to enter an EndDate1 value greater than that of StartDate1?
Also, in the Validate code, if I remove the line
" else xfa.host.messageBox("It Works"); "
then I get a syntax error, which I don't understand.
Can someone help clean up this mess?
Thanks,
Bernie
----- F.P1.EndDate1::exit - (FormCalc, client) --------------------
if ($.isNull ne 1) then
var nDays = Date2Num($.formattedValue, "MM/DD/YYYY");
if (nDays <= 0) then
xfa.host.messageBox("Please enter the date in MM/DD/YYYY format.");
xfa.host.setFocus($.name);
endif
endif
----- F.P1.EndDate1::validate - (FormCalc, client) ---------------
var DCV
if (HasValue(StartDate1) and HasValue(EndDate1)) then
DCV = Date2Num(EndDate1, "YYYY-MM-DD") - Date2Num(StartDate1, "YYYY-MM-DD");
// xfa.host.messageBox (DCV);
if (DCV<0) then
xfa.host.messageBox("End Date must be greater than Start Date");
xfa.host.setFocus($.name);
else xfa.host.messageBox("It Works");
endif
else $ = null
endif

Thanks for responding.
If I rename the back_btn instance to next_btn and the next_btn to back_btn and click the back button, this is the error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at david_fla::MainTimeline/nextImage()
Any suggestions?

Similar Messages

  • I want to cancel my subscription,  I just signed up and the conversion did not work like I wanted.  Please cancel asap.  thank you

    I want to cancel my membership ASAP, this conversion did not work and I want a refund.  How can I do this.
    Stan

    Hi estans66,
    I have been cancelled your subscription on 13 Oct,2014.
    It takes 7 business days in refund processing.
    You can contact our chat support :http://helpx.adobe.com/x-productkb/global/service-b.html
    Regards,
    Florence

  • Button/UiLoader Code just not working like I want it to.

    Can anyone tell me why my forward button (next_btn3) isn't working?  I've got a uiLoader (printLoader) which loads three images.  Everything works fine, I can see the button but can't use it.  Thanks in advance.
    next_btn3.addEventListener(MouseEvent.CLICK, nextImage3);
    var imageNumber3:Number = 1;
    function checkNumber3():void{
    next_btn3.visible=true;
    back_btn3.visible=true;
    if(imageNumber3==3){
      trace(imageNumber3);
      next_btn3.visible = false;
      if(imageNumber3==1){
       trace(imageNumber3);
       back_btn3.visible = false;
    checkNumber3();
    function nextImage3(evtObj:MouseEvent):void{
    imageNumber3++;
    printLoader.source = "images/print_images/image"+imageNumber3+".jpg";
    checkNumber3();
    back_btn3.addEventListener(MouseEvent.CLICK, backImage3);
    function backImage3(evtObj:MouseEvent):void
    imageNumber3--;
    printLoader.source = "images/print_images/image"+imageNumber3+".jpg";
    checkNumber3();

    Thanks for responding.
    If I rename the back_btn instance to next_btn and the next_btn to back_btn and click the back button, this is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at david_fla::MainTimeline/nextImage()
    Any suggestions?

  • Code not working (like so many others it seems)

    Your Gift Card Code is here
    Thank you – your claim has been accepted! Here’s how to use the Gift Card Code to make apps and games purchases in the Windows Phone Store:
    1. Launch the Wallet application from the app list on your new Lumia smartphone.
    2. If this is your first time launching Wallet, select ‘Get Started’.
    3. Select the ‘+’ button at the bottom of the screen in Wallet.
    4. Select ‘Microsoft gift card’. (You may need to repeat steps 3 and 4 in some cases to get the “Microsoft Gift Card” option).
    5. Enter the Gift Card Code below and tap next. 
    *code removed*
    You now have £20 in your Microsoft Account! Purchase some cool apps and games from the Windows Phone Store by choosing your Microsoft Account as your payment method.
    GAME ON
    Get some of EA's biggest and best games on your Lumia. Unwrap new special offers every week through January. Plus, Gameloft has some huge titles at 50% off during the campaign period – don’t miss out! 
    well I do NOT have £20 added to my Microsoft account, and being a 360 and xbox one user I tried to enter the code on those also - all to no avail- absolutely disgusted as it looks like all affected will indeed miss out on the reduced priced games as no funds to bu y them!
    Microsoft confirmed that the code has a £0 value - and that the code has not been redeemed either therefore its not like someone else has used up the £20 on the code - there was never £20 on it in the first place.
    Seriously, I spoke to at least 5 or 6 people at Microsoft so no doubt its cost me quite a few pounds just to confirm what I already knew - the code is useless!
    Wha at nokia actually deals with these codes and are they contactabe by telephone as this really needs sorting out fast style as the special offers on game prices and apps is due to end in the next few days!!
    and can I just thank whatever idiot is responsible for your automated phone service for taking 10minutes running you through the various options, only to find out that you cannot speak to a customer service adviser outside monday - friday - so well done, great service, NOT!

    Hi, sorry to hear this. We assumed you already contacted your local support, correct? What have they informed you?

  • Tclsh script not working like I want it to...

    Using this script, when I execute it, it stops at Erasing VLAN Database and sits there until I hit enter again, then it finishes the script and reloads the device. Thoughts on why?
    tclsh
    puts [open "flash:reset.tcl" w+] {
    puts "Erasing Configuration"
    typeahead "\r"
    puts [ exec "write erase" ]
    puts "Erasing VLAN Database"
    typeahead "\r"
    puts [ exec "del flash:vlan.dat" ]
    puts "Copying Base Configuration To Startup"
    typeahead "\r"
    puts [ exec "copy flash:baseline.cfg nvram:startup-config" ]
    puts "Reloading The Device"
    typeahead "\r"
    puts [ exec "reload" ]

    Did you tried adding another carriage return?
    typeahead "\r\r"
    I tested your original script in a switch and it worked.

  • HT1222 I can updat my ph ios7. Bt it has some prob, Like wifi or hotspot. Now i want to update it again, bt its not working. I want 2 update ios7 and ios 7.0.2.

    I can updat my ph ios7. Bt it has some prob, Like wifi or hotspot. Now i want to update it again, bt its not working. I want 2 update ios7 and ios 7.0.2.

    Okay, so update it.
    Frankly no one can offer assistance if no details about the problem are provided.

  • My passbook on my iphone 5 works the same as it did for the iphone 4, its not working like it should. why?

    my pass book on my iphone 5 does not work like it should, it works just the same as it did on the iphone 4, i tryed the date an time trick like 5 times an still nothing. i tryed factory reset an nothing. i know it workds different on the iphone 5 then the 4. but i dont know what else to do.

    Can you be more specific about what isn't working?  Are you running iOS 6 or iOS 6.1?
    Did you read the support page on Passbook?  http://support.apple.com/kb/HT5483

  • Siri is not working like it should i ask it to play songs and it just says sorry i cant do that any ideas y

    siri is not working like it should i asked it to play songs and it just says sorry i cant do it any ideas y

    Debbie:
    deborahfromwindsor wrote:
    he advises restarting by inserting the OSX disc and pressing down the C button to reboot from there then selecting disk utility, hard disk and repair.... Does he mean me to hold down the C key on the alpha keyboard or the ctrl key?
    Should I just ask for my money back??? If it is a simple repair do I just literally push the disc in, push the power button and hold down the C button?
    That's where I would begin, too, with
    Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.TStatus of HDD at the bottom of right panel, and report if it saysanything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need touse autility like TechTool Pro,Drive Geniusor DiskWarrior
    First we need to determine if the issue you are experiencing with the computer is software or hardware based. Once we have gotten things sorted out there should be time enough to make you decision about keeping or returning it.
    cornelius

  • I have bought a IPhone 4 from Malaysia, my home button is not working. I want to replace the phone under warranty but all service centres mention that its country specific and I need to get it replaced only at malaysia. Can anyone guide me what to do????

    I have bought a IPhone 4 from Malaysia, my home button is not working. I want to replace the phone under warranty but all service centres mention that its country specific and I need to get it replaced only at malaysia. Can anyone guide me what to do????

    The iPhone warranty is not international and as you purchased in
    Malaysia the warranty is only valid in Malaysia
    You could try taking to an iPhone Authorised service provider
    in India but there have been many similar posts to yours
    and I am not aware  of them assisting  with an iPhone from
    outside India

  • I just installed Photoshop CC 2014, but Latest version of Bridge will not work when I want to open it from PS

    Any idea why is Bridge latest version not working when trying to open it in Photoshop CC 2014 ? (French version) ? When trying, Creative Cloud app will open to ask if I want to download newest version, which I did numerous times now.
    Thank you
    Guy Deschenes
    Shawinigan (QC) Canada

    Hi Eric,
    Here's how a similar problem was resolved between PS and BR.
    The issue was confirmed by ChunXiaYang at Adobe staff and solution put in the forum discussion on June 19 (no. 13). Here's a copy:
    I have confirmed that this is a known issue before release. And the workaround is to uninstall and reinstall PS 2014. Then Bridge can be launched by selecting 'Browse in Bridge' in PS2014.
    Please try the installation, and let me know whether it works. Thanks!
    It woks just fine since I unistalled and reinstalled PS 2014.
    Guy
    Le 2014-07-17 à 1:13 PM, ericboerner a écrit :
    I just installed Photoshop CC 2014, but Latest version of Bridge will not work when I want to open it from PS
    created by ericboerner in Bridge General Discussion - View the full discussion
    I did this with a fresh install of the entire CC package. As soon as the CC packages updated, CC Bridge broke. Unistalled CC PS, reinstalled again, CC Bridge works, but CC PS updates itself again, and breaks CC Bridge.
    You know... The whole move to CC has been a massive cluster... I've struggled with the CC packages for my entire subscription year, and now I'm 1.5 month away from needing to throw down another $720 for no reason what-so-ever, just so we can Beta test your really screwed up subscription services.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6559164#6559164
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Bridge General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Why is my password not working when i want to update apps?

    Please tell me why my Apple ID is not working when i want to update apps?(just the purchased apps are not working).I now have an acount that dosen't have a card entered.

    For examle i have iGO primo and my password is not working (i already reset it).

  • I've updated to iso5 on my iphone 4 but some of the features are not working like the lock screen camera feature.  Have I done something wrong?

    I've updated my iphone 4 to ISO 5.  I could not connect to icloud yet however does this expalin why some of the features of ISO 5 are not working like the camera lock screen feature?
    Thanks
    C

    to see the camera icon, double-click the home button when you are on the lock screen. this will show the music controls and the camera icon. double click the home bgutton again to close them.

  • HT201303 Hi this is Sai I was trying to change my card details because my old card is not working so I want to change the details . So can you help me out please

    Hi this is Sai I was trying to change my card details because my old card is not working so I want to change the details . So can you help me out please ..
    <Edited By Host>

    These are user-to-user forums, you are notalking to Apple here - I've asked the hosts to remove your email address from post.
    Are you not able to log into your account and change your account details e.g. via Store > View My Account on a computer's iTunes ?

  • How i can back up my i phone ore restore back up if it keeps to say password is wrong. i tried every possible psw ds does not work. now i want to change the password it wants old pswd and i do not know it. what can i do?

    how i can back up my i phone ore restore back up if it keeps to say password is wrong. i tried every possible psw ds does not work. now i want to change the password it wants old pswd and i do not know it. what can i do?

    Sorry, but if you have forgotten the password for your encrypted backup, you'll have to start all over again:
    Make sure that the password you use is one that you'll remember. If you encrypt an iPhone backup in iTunes and forget your password, you won't be able to restore from backup, and your data will be unrecoverable.
    If you can't remember the password and want to start again, you must perform a full software restore and choose set up as a new device when iTunes prompts you to select the backup from which to restore.
    copied from Create and delete iPhone, iPad, and iPod touch backups in iTunes

  • Iphone 4s Running Ios(7.1) Camera Focus Not Working Like Text On book It Showed Blurey Text & My Friend Also Same Modle His Camera Focus Perfectly..Is Is Possible To Fix It...Thnx Every 1

    Iphone 4s Running Ios(7.1) Camera Focus Not Working Like Text On book It Showed Blurey Text & My Friend Also Same Modle His Camera Focus Perfectly..Is Is Possible To Fix It...Thnx Every 1

    Hello SajidChaudhary,
    Thanks for using Apple Support Communities.
    For more information, take a look at:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    Have a nice day,
    Mario

Maybe you are looking for