Page 1 of 1

What's the Answer?

Posted: Wed Oct 26, 2016 7:58 pm
by RossG
I have code...

Code: Select all

   if field tSpins = "" then
      put name of this stack into sName
      delete char 1 to 6 of sName
      answer "Conditions of Use" with "Agree" or "Disagree" titled sName
      if it is "Disagree" then
       ...some cleanup code
         close this stack
      end if
   end if


This works in LC but not in the exe.

Where have I strayed?

Re: What's the Answer?

Posted: Wed Oct 26, 2016 8:40 pm
by dunbarx
Before we try anything, you do know that what you may have thought you commented out is going to throw an error. Periods not allowed.

But neither would it work in the IDE.

Craig Newman

Re: What's the Answer?

Posted: Thu Oct 27, 2016 12:58 am
by RossG
dunbarx wrote:Before we try anything, you do know that what you may have thought you commented out is going to throw an error. Periods not allowed.

But neither would it work in the IDE.

Craig Newman

The periods aren't in the "real" code - just puts "" into
some fields and variables.

Re: What's the Answer?

Posted: Thu Oct 27, 2016 1:23 am
by Dixie
Works on a Mac... :-)

Re: What's the Answer?

Posted: Thu Oct 27, 2016 2:25 am
by RossG
Dixie wrote:Works on a Mac... :-)
Lucky you.
Do you have anything against Win?

Re: What's the Answer?

Posted: Thu Oct 27, 2016 4:28 pm
by jacque
We need to know what doesn't work. What do you expect to see and what really happens instead? Do you get the dialog? If so, does it respond as expected? Is the dialog title correct? (There may be a problem with the title parsing.)