Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    287

    Problem On Button ...

    Code - Dosent work

    nChoice = Dialog.Message("Notice", "Your message here.", MB_OKCANCEL,

    MB_ICONINFORMATION, MB_DEFBUTTON1);
    if nChoice == true then
    Application.Exit(0);
    elseif nChoice == false then
    Label.SetEnabled("Gun", true);
    end


    End -

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Dialog.Message returns a 'number' instead of a boolean.
    instead of testing 'true', test for a '1' or use the constant 'IDOK'.


    nChoice = Dialog.Message("Notice", "Your message here.", MB_OKCANCEL,

    MB_ICONINFORMATION, MB_DEFBUTTON1);
    if nChoice == true then
    Application.Exit(0);
    elseif nChoice == false then
    Label.SetEnabled("Gun", true);
    end

    Code:
    if nChoice == IDOK then
    hth

  3. #3
    Join Date
    Jul 2007
    Posts
    287
    Quote Originally Posted by holtgrewe View Post
    Dialog.Message returns a 'number' instead of a boolean.
    instead of testing 'true', test for a '1' or use the constant 'IDOK'.





    Code:
    if nChoice == IDOK then
    hth
    ty to man

Similar Threads

  1. Problem with file.find and cancel button
    By Solmos in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 11-05-2007, 07:59 AM
  2. Problem with button tool
    By cgirolet in forum AutoPlay Media Studio 6.0
    Replies: 13
    Last Post: 09-17-2005, 02:54 PM
  3. Button Problem
    By thetford in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 04-21-2005, 03:03 PM
  4. animated flash button problem
    By Witkizz in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 07-21-2004, 01:17 PM
  5. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts