Re: please help!!

2014-06-09 Thread Geoff Canyon
I created a test stack. I created six buttons and grouped them. I ran the
following in a seventh button. It never failed.

I'm using 6.5.2. Somewhere along the way the more specific childControlIDs
was added. I didn't know if it is available in 6.1.1 so I didn't use it.

on mouseUp
   repeat 1000
  lock screen
  repeat for each line tID in the controlids of grp 1
 set the label of control id tID to char random(5) of 1234?
  end repeat

-- this is the important code for your purpose
  repeat for each line tID in the controlids of grp 1
 set the opaque of control id tID to (the label of control id tID
is ?)
  end repeat


  unlock screen
  wait 0 ticks
  repeat for each line tID in the controlids of grp 1
 if the opaque of control id tID is not (the label of control id
tID is ?) then
answer Problem!
exit repeat
 end if
  end repeat
   end repeat
end mouseUp


On Sat, Jun 7, 2014 at 9:41 PM, la...@significantplanet.org wrote:

 I am using 6.1.1 (rc 4) on XP

 I have spent HOURS trying to do something that seems fairly simple.

 I have a column of buttons labeled tile11, tile12, etc

 After I label the buttons, they are all alpha-numeric characters except
 for one being labeled ?

 Then I call up the following command:

 on doOpaque

 put 0 into x

 repeat rowNum times

 put x + 1 into x

 put (tile1  x) into thisButton

 if the label of button thisButton = ? then

 set the opaque of button thisButton to true

 else

 set the opaque of button thisButton to false

 end if

 end repeat

 end doOpaque



 If I debug and step through it, it always seems to work.  However if I
 just run it, it invariably sets the opaque of the ? button to false and
 some other button (NOT ?) to true.

 I'm really going crazy with this and would appreciate it if anyone knows
 why this is happening.

 Thanks in advance, Larry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-08 Thread J. Landman Gay

On 6/8/2014, 12:41 AM, la...@significantplanet.org wrote:

Right now I am too frustrated and tired to keep going.


Yeah, been there. It's normal but it's really frustrating. Learning a 
new language is hard, no matter which one you choose.


Send me your stack if you want and I can probably tell you where it's 
going off the rails. But rest up first.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-08 Thread Earthednet-wp
I've had similar problems using the snapshot command, where the engine seems to 
get behind. My latest problem was my own fault, though where I had locked the 
screen and it couldn't update. What fooled me was that when I put in a 
breakpoint, the breakpoint unlocked the screen and it looked as I expected. 
Finally, after getting a night's sleep, I tried an unlock screen command and it 
all worked as desired.

I don't know if this would be considered a bug, but it is certainly a way the 
debugger can give a confusing result.

Best,
Bill

William Prothero
http://es.earthednet.org

 On Jun 7, 2014, at 9:36 PM, As_Simon si...@asato-media.com wrote:
 
 larry wrote
 If I debug and step through it, it always seems to work.
 
 This, it seems, always points toward the engine is not keeping up.
 A wait 1 millisec before if the label of button thisButton = ? then
 tends to clear it up. (maybe somewhere else but in that area)
 
 Simon
 
 
 
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/please-help-tp4680326p4680333.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-08 Thread larry

Hello Jacqueline,
You are incredibly kind!
I did rest up and then started over this morning.  I went back to my 
original stack before this latest problem and just rebuilt it from scratch.

I don't know that I did anything differently, but now it works just fine.
Every once in awhile I will get the most random error message when running a 
program, but it never seems to ultimately matter.
That is one of my frustrations with LiveCode.  And as you point out, it's 
going to be hard to learning any new language.

So, for today, I am tired but moving on.
Maybe you'll give me a rain check to look at one of my stacks in the future?
Thank you again,
Larry

- Original Message - 
From: J. Landman Gay jac...@hyperactivesw.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sunday, June 08, 2014 12:00 AM
Subject: Re: please help!!



On 6/8/2014, 12:41 AM, la...@significantplanet.org wrote:

Right now I am too frustrated and tired to keep going.


Yeah, been there. It's normal but it's really frustrating. Learning a new 
language is hard, no matter which one you choose.


Send me your stack if you want and I can probably tell you where it's 
going off the rails. But rest up first.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-08 Thread J. Landman Gay

On 6/8/2014, 4:29 PM, la...@significantplanet.org wrote:

Maybe you'll give me a rain check to look at one of my stacks in the
future?


Sure, provided it's a weekend when most of my clients are ignoring me, 
and that you've exhausted all options and are once again on the brink of 
suicide. ;)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread Randy Hengst
When I've had similar problems I had multiple buttons with the same name. 


 On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote:
 
 I am using 6.1.1 (rc 4) on XP
 
 I have spent HOURS trying to do something that seems fairly simple.
 
 I have a column of buttons labeled tile11, tile12, etc
 
 After I label the buttons, they are all alpha-numeric characters except for 
 one being labeled ?
 
 Then I call up the following command:
 
 on doOpaque
 
 put 0 into x
 
 repeat rowNum times
 
 put x + 1 into x
 
 put (tile1  x) into thisButton
 
 if the label of button thisButton = ? then
 
 set the opaque of button thisButton to true
 
 else
 
 set the opaque of button thisButton to false
 
 end if
 
 end repeat
 
 end doOpaque
 
 
 
 If I debug and step through it, it always seems to work.  However if I just 
 run it, it invariably sets the opaque of the ? button to false and some 
 other button (NOT ?) to true.
 
 I'm really going crazy with this and would appreciate it if anyone knows why 
 this is happening.
 
 Thanks in advance, Larry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread larry

Thank you Randy, but that's not the case here.
After I got your email, I triple checked.  It's something else going on.

- Original Message - 
From: Randy Hengst iowahen...@mac.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, June 07, 2014 9:21 PM
Subject: Re: please help!!



When I've had similar problems I had multiple buttons with the same name.



On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote:

I am using 6.1.1 (rc 4) on XP

I have spent HOURS trying to do something that seems fairly simple.

I have a column of buttons labeled tile11, tile12, etc

After I label the buttons, they are all alpha-numeric characters except 
for one being labeled ?


Then I call up the following command:

on doOpaque

put 0 into x

repeat rowNum times

put x + 1 into x

put (tile1  x) into thisButton

if the label of button thisButton = ? then

set the opaque of button thisButton to true

else

set the opaque of button thisButton to false

end if

end repeat

end doOpaque



If I debug and step through it, it always seems to work.  However if I 
just run it, it invariably sets the opaque of the ? button to false and 
some other button (NOT ?) to true.


I'm really going crazy with this and would appreciate it if anyone knows 
why this is happening.


Thanks in advance, Larry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread Paul Hibbert
Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC 
versions, but I'm also on a Mac, however, at least it proves the script sample 
is fine.

Just a thought, could the label of button ? also have a space or return char 
in the name?

Maybe try swapping the = for contains

e.g. if the label of button thisButton contains ? then

Paul


On 2014-06-07, at 8:39 PM, la...@significantplanet.org wrote:

 Thank you Randy, but that's not the case here.
 After I got your email, I triple checked.  It's something else going on.
 
 - Original Message - From: Randy Hengst iowahen...@mac.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Saturday, June 07, 2014 9:21 PM
 Subject: Re: please help!!
 
 
 When I've had similar problems I had multiple buttons with the same name.
 
 
 On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote:
 
 I am using 6.1.1 (rc 4) on XP
 
 I have spent HOURS trying to do something that seems fairly simple.
 
 I have a column of buttons labeled tile11, tile12, etc
 
 After I label the buttons, they are all alpha-numeric characters except for 
 one being labeled ?
 
 Then I call up the following command:
 
 on doOpaque
 
 put 0 into x
 
 repeat rowNum times
 
 put x + 1 into x
 
 put (tile1  x) into thisButton
 
 if the label of button thisButton = ? then
 
 set the opaque of button thisButton to true
 
 else
 
 set the opaque of button thisButton to false
 
 end if
 
 end repeat
 
 end doOpaque
 
 
 
 If I debug and step through it, it always seems to work.  However if I just 
 run it, it invariably sets the opaque of the ? button to false and some 
 other button (NOT ?) to true.
 
 I'm really going crazy with this and would appreciate it if anyone knows 
 why this is happening.
 
 Thanks in advance, Larry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread dunbarx
Larry, works for me too.


I have had, though not in a while, cases where a handler works while stepping 
through a script, but fails when run. I was never able to duplicate this, and 
it goes back to HC days. The issue always went away, eventually, though I never 
understood why. 


Perhaps after much agonizing over those cases I changed something and suddenly 
all was well. I cannot imagine an error that would pass the debugger, but break 
normal execution. But I know it happened.


Anyone else corroborate this phenominum?


Craig Newman



-Original Message-
From: Paul Hibbert paulhibb...@mac.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Sat, Jun 7, 2014 11:44 pm
Subject: Re: please help!!


Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC 
versions, 
but I'm also on a Mac, however, at least it proves the script sample is fine.

Just a thought, could the label of button ? also have a space or return char 
in the name?

Maybe try swapping the = for contains

e.g. if the label of button thisButton contains ? then

Paul


On 2014-06-07, at 8:39 PM, la...@significantplanet.org wrote:

 Thank you Randy, but that's not the case here.
 After I got your email, I triple checked.  It's something else going on.
 
 - Original Message - From: Randy Hengst iowahen...@mac.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Saturday, June 07, 2014 9:21 PM
 Subject: Re: please help!!
 
 
 When I've had similar problems I had multiple buttons with the same name.
 
 
 On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote:
 
 I am using 6.1.1 (rc 4) on XP
 
 I have spent HOURS trying to do something that seems fairly simple.
 
 I have a column of buttons labeled tile11, tile12, etc
 
 After I label the buttons, they are all alpha-numeric characters except for 
one being labeled ?
 
 Then I call up the following command:
 
 on doOpaque
 
 put 0 into x
 
 repeat rowNum times
 
 put x + 1 into x
 
 put (tile1  x) into thisButton
 
 if the label of button thisButton = ? then
 
 set the opaque of button thisButton to true
 
 else
 
 set the opaque of button thisButton to false
 
 end if
 
 end repeat
 
 end doOpaque
 
 
 
 If I debug and step through it, it always seems to work.  However if I just 
run it, it invariably sets the opaque of the ? button to false and some other 
button (NOT ?) to true.
 
 I'm really going crazy with this and would appreciate it if anyone knows 
 why 
this is happening.
 
 Thanks in advance, Larry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription 
preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread Mike Bonner
The names and the labels for each button are the same?  Other than the one
with the question mark which is named tile1# in the same pattern as the
others, but has the ? label?

As mentioned above, it sounds like the name of some of your buttons may be
duplicates.

After triple checking that again, you might grab the stable version of the
6.1.1 (Or jump to 6.6.2?)  Maybe theres something funky going on with the
6.1.1 rc 4 version. Did notice in the rc5 bug fixes that when cloning a
group, revuniqueids are not updated correctly for the groups child
controls. Don't know if you have cloned groups of buttons but thought i'd
throw it out there.


On Sat, Jun 7, 2014 at 9:43 PM, Paul Hibbert paulhibb...@mac.com wrote:

 Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC
 versions, but I'm also on a Mac, however, at least it proves the script
 sample is fine.

 Just a thought, could the label of button ? also have a space or return
 char in the name?

 Maybe try swapping the = for contains

 e.g. if the label of button thisButton contains ? then

 Paul


 On 2014-06-07, at 8:39 PM, la...@significantplanet.org wrote:

  Thank you Randy, but that's not the case here.
  After I got your email, I triple checked.  It's something else going on.
 
  - Original Message - From: Randy Hengst iowahen...@mac.com
  To: How to use LiveCode use-livecode@lists.runrev.com
  Sent: Saturday, June 07, 2014 9:21 PM
  Subject: Re: please help!!
 
 
  When I've had similar problems I had multiple buttons with the same
 name.
 
 
  On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote:
 
  I am using 6.1.1 (rc 4) on XP
 
  I have spent HOURS trying to do something that seems fairly simple.
 
  I have a column of buttons labeled tile11, tile12, etc
 
  After I label the buttons, they are all alpha-numeric characters
 except for one being labeled ?
 
  Then I call up the following command:
 
  on doOpaque
 
  put 0 into x
 
  repeat rowNum times
 
  put x + 1 into x
 
  put (tile1  x) into thisButton
 
  if the label of button thisButton = ? then
 
  set the opaque of button thisButton to true
 
  else
 
  set the opaque of button thisButton to false
 
  end if
 
  end repeat
 
  end doOpaque
 
 
 
  If I debug and step through it, it always seems to work.  However if I
 just run it, it invariably sets the opaque of the ? button to false and
 some other button (NOT ?) to true.
 
  I'm really going crazy with this and would appreciate it if anyone
 knows why this is happening.
 
  Thanks in advance, Larry
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread larry

hey Paul,
I changed it to contains (as you suggested) and now it works.  Thanks. 
Still seems like a bug to me since I KNOW that I don't have a space or 
return or anything in the name.


2) I was not aware that RC versions are not necessarily considered stable. 
I had kept using that version, because just about every time I upgraded to a 
new version I had some new problems.


Do you recommend any newer version as truly stable?  Unfortunately, my 
experience with LC is that I just trade one set of problems for a newer set 
of problems.

Thanks,
Larry

- Original Message - 
From: Paul Hibbert paulhibb...@mac.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, June 07, 2014 9:43 PM
Subject: Re: please help!!


Larry, it seems to work fine here, I tried LC 6.1.3 as I don't keep RC 
versions, but I'm also on a Mac, however, at least it proves the script 
sample is fine.


Just a thought, could the label of button ? also have a space or return 
char in the name?


Maybe try swapping the = for contains

e.g. if the label of button thisButton contains ? then

Paul


On 2014-06-07, at 8:39 PM, la...@significantplanet.org wrote:


Thank you Randy, but that's not the case here.
After I got your email, I triple checked.  It's something else going on.

- Original Message - From: Randy Hengst iowahen...@mac.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, June 07, 2014 9:21 PM
Subject: Re: please help!!


When I've had similar problems I had multiple buttons with the same 
name.




On Jun 7, 2014, at 9:41 PM, la...@significantplanet.org wrote:

I am using 6.1.1 (rc 4) on XP

I have spent HOURS trying to do something that seems fairly simple.

I have a column of buttons labeled tile11, tile12, etc

After I label the buttons, they are all alpha-numeric characters except 
for one being labeled ?


Then I call up the following command:

on doOpaque

put 0 into x

repeat rowNum times

put x + 1 into x

put (tile1  x) into thisButton

if the label of button thisButton = ? then

set the opaque of button thisButton to true

else

set the opaque of button thisButton to false

end if

end repeat

end doOpaque



If I debug and step through it, it always seems to work.  However if I 
just run it, it invariably sets the opaque of the ? button to false 
and some other button (NOT ?) to true.


I'm really going crazy with this and would appreciate it if anyone 
knows why this is happening.


Thanks in advance, Larry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread As_Simon
larry wrote
 If I debug and step through it, it always seems to work. 

This, it seems, always points toward the engine is not keeping up.
A wait 1 millisec before if the label of button thisButton = ? then
tends to clear it up. (maybe somewhere else but in that area)

Simon



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/please-help-tp4680326p4680333.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread J. Landman Gay

I know you've found a workaround now, but I'm curious:

Where does rownum get its value?

Do the button names match their labels exactly? Your handler references 
the buttons by name (button thisButton) but then looks at their 
labels. If they don't match, the handler won't be working with the 
button you think it is. (Though this wouldn't explain the success when 
debugging.)


What happens if you omit the rowNum variable in the repeat loop:

repeat with x = 1 to rowNum
 put (tile1  x) into thisButton
 set the opaque of btn thisButton to (the label of btn thisButton = ?)
end repeat


On 6/7/2014, 9:41 PM, la...@significantplanet.org wrote:

I am using 6.1.1 (rc 4) on XP

I have spent HOURS trying to do something that seems fairly simple.

I have a column of buttons labeled tile11, tile12, etc

After I label the buttons, they are all alpha-numeric characters except for one being 
labeled ?

Then I call up the following command:

on doOpaque

put 0 into x

repeat rowNum times

put x + 1 into x

put (tile1  x) into thisButton

if the label of button thisButton = ? then

set the opaque of button thisButton to true

else

set the opaque of button thisButton to false

end if

end repeat

end doOpaque



If I debug and step through it, it always seems to work.  However if I just run it, it invariably 
sets the opaque of the ? button to false and some other button (NOT ?) to 
true.

I'm really going crazy with this and would appreciate it if anyone knows why 
this is happening.

Thanks in advance, Larry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread J. Landman Gay

On 6/7/2014, 11:55 PM, J. Landman Gay wrote:

What happens if you omit the rowNum variable in the repeat loop:

repeat with x = 1 to rowNum
  put (tile1  x) into thisButton
  set the opaque of btn thisButton to (the label of btn thisButton = ?)
end repeat


Which obviously I didn't. I meant to just test a different type of 
repeat structure, but I don't really think it's going to make any 
difference. But do double-check that the button names and labels match.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!!

2014-06-07 Thread larry

You have all been very kind in trying to help me.
Right now, I am completely disillusioned with LiveCode.
I've wasted an entire day trying everything I could think of and everything 
you all have suggested.
I cannot get it to work consistently.  I mean I cannot get the error 
consistently and, much worse, I cannot get the program to behave as it 
should.
Probably I will go learn some other program because I have had way too many 
of these sessions where LiveCode just lets me down.

All the people on this list have been extremely wonderful and helpful.
Right now I am too frustrated and tired to keep going.
Thank you all.

- Original Message - 
From: J. Landman Gay jac...@hyperactivesw.com

To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Saturday, June 07, 2014 11:24 PM
Subject: Re: please help!!



On 6/7/2014, 11:55 PM, J. Landman Gay wrote:

What happens if you omit the rowNum variable in the repeat loop:

repeat with x = 1 to rowNum
  put (tile1  x) into thisButton
  set the opaque of btn thisButton to (the label of btn thisButton = ?)
end repeat


Which obviously I didn't. I meant to just test a different type of repeat 
structure, but I don't really think it's going to make any difference. But 
do double-check that the button names and labels match.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!

2014-04-03 Thread Klaus major-k
Hi Larry,

Am 03.04.2014 um 21:26 schrieb la...@significantplanet.org:

 I've tried 20 different ways of syntax for a filter and still cannot make it 
 work.
 
 I'm trying to filter the lines of a field that contains a specific string, 
 say d14 somewhere within the field.
 
 Here is the latest that did NOT work:
 
 on mouseUp
 ##filter field column3 with * d14 *

filter field column3 with *d14*

 end mouseUp

:-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!

2014-04-03 Thread Mark Schonewille

Hi Larry,

First of all, when you write it didn't work, you should really write 
exactly why it didn't work and what you got instead of the expected 
result. E.g. did nothing happen, did you get an error message --if you 
got an error message, then what was the exact text of the error 
message--, or did the script run and was the result different from what 
you wanted?


The follow should work, i.e. it should remove all lines except those 
containing the string d14:


on mouseUp
  filter fld Column3 with *d14*
end mouseUp

I'm assuming that this script is in a button and that you click on the 
button to run the script.


If this doesn't help, can you give a more specific description of the 
problem?


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 4/3/2014 21:26, la...@significantplanet.org wrote:

I've tried 20 different ways of syntax for a filter and still cannot make it 
work.

I'm trying to filter the lines of a field that contains a specific string, say 
d14 somewhere within the field.

Here is the latest that did NOT work:

on mouseUp

filter field column3 with * d14 *

end mouseUp
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: please help!

2014-04-03 Thread dunbarx
Hi.


filter and matchtext take a bit of practice. It seems you have more stuff 
in your filterPattern than you need, but I could be mistaken, As a test, make a 
field with the following in it:
aa
bb
cc
dd


Now in a button:



on mouseUp
   get fld 1
   filter it without bb --also try filter with...
end mouseUp



Does this do what you intended?


Craig Newman


-Original Message-
From: larry la...@significantplanet.org
To: use-livecode use-livecode@lists.runrev.com
Sent: Thu, Apr 3, 2014 3:27 pm
Subject: please help!


I've tried 20 different ways of syntax for a filter and still cannot make it 
work.

I'm trying to filter the lines of a field that contains a specific string, say 
d14 somewhere within the field.

Here is the latest that did NOT work:

on mouseUp

filter field column3 with * d14 *

end mouseUp
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode