What's the Answer?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

What's the Answer?

Post by RossG » Wed Oct 26, 2016 7:58 pm

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?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9754
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: What's the Answer?

Post by dunbarx » Wed Oct 26, 2016 8:40 pm

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

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: What's the Answer?

Post by RossG » Thu Oct 27, 2016 12:58 am

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.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: What's the Answer?

Post by Dixie » Thu Oct 27, 2016 1:23 am

Works on a Mac... :-)

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: What's the Answer?

Post by RossG » Thu Oct 27, 2016 2:25 am

Dixie wrote:Works on a Mac... :-)
Lucky you.
Do you have anything against Win?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: What's the Answer?

Post by jacque » Thu Oct 27, 2016 4:28 pm

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.)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”