Some things I've forgotten

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

Some things I've forgotten

Post by RossG » Mon Nov 09, 2015 1:12 am

After a break of seven years I've forgotten a few simple things:

1. How do I prevent the system variables (which I've never used) from appearing in the debugger?

2. In an old programme I have "send "flash" to...". Where do I find the code for "flash"?

3. How do I retrieve the index number of an array element rather than the contents?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Some things I've forgotten

Post by dunbarx » Mon Nov 09, 2015 3:48 am

Hi.

This is Thierry's hack. Open the debugger script. Find the function "revDebuggerValidGlobalNames" Replace with:

Code: Select all

function revDebuggerValidGlobalNames
   local tGlobalsRaw
   put the globals into tGlobalsRaw
   
   replace comma with return in tGlobalsRaw
  
   filter tGlobalsRaw without "*(x86)"
    filter tGlobalsRaw without "$*"
     filter tGlobalsRaw without "grev*"
   replace return with comma in tGlobalsRaw
   
   return tGlobalsRaw
end revDebuggerValidGlobalNames
Not sure what # 2 is.

For # 3, how about "answer the keys of yourArray".

Welcome back.

Craig Newman

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

Re: Some things I've forgotten

Post by RossG » Mon Nov 09, 2015 12:12 pm

Thanks for the welcome back Craig.

The full story is that at end '08 my computer died a sudden death.
After a couple of weeks messing about including a new motherboard,
power supply, memory, it still wouldn't work.

By that time three weeks had passed and I realized I could live without
it so went to the local library. Don't know how many books I read but
when I couldn't find anything that interested me (about end '13) I
bought a new computer (well to be truthful an ex-corporate HP7800
for $A50) and it's been a pleasure to use (still with XP).

In the interim I've had my 78th birthday. I claim the oldies prize.
Any other contenders?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Some things I've forgotten

Post by dunbarx » Mon Nov 09, 2015 4:57 pm

Jacque and I are probably 2 and 3. I think all the others cannot remember rotary phones.

Craig

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

Re: Some things I've forgotten

Post by RossG » Mon Nov 09, 2015 9:22 pm

Dunbarx

That code snippet sure is powerful.

I copied it into a text file and put it in a directory
under LC.

When I restarted LC the system variables didn't
appear in the debugger.

Must have know I was out to get it.

Thanks for your interest.

Later: Spoke too soon! They're back. Will have to take
severe measures.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Some things I've forgotten

Post by jacque » Tue Nov 10, 2015 4:56 pm

Not that it helps for those who don't like them, but the system variables are there because it is possible for scripts to declare their own, so they need to be displayed in the variable watcher. I imagine the editor goes to some lengths to retain them.

Oh, and anyone who worked with HyperCard early on is at least partially fossilized by now.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply