The use of the term "working"

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Judson
Posts: 26
Joined: Fri May 07, 2010 9:15 pm

The use of the term "working"

Post by Judson » Sat Jul 31, 2010 11:17 pm

Revolution is producing errors on the variable "working", e.g.,

put field "name" into working

This produces an error. If I change "working" to "workingX" all is well.

Two questions:

1) When I look in the dictionary the word "working" does not appear there. So what is its purpose?

2) Is there a list of reserved words which are other than those found in the Dictionary?

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: The use of the term "working"

Post by Curry » Sat Jul 31, 2010 11:48 pm

A common naming scheme is tWorking, tCost, tChar, etc.; helps to avoid current and future conflicts with reserved words. One-letter variables such as x are also safe.
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: The use of the term "working"

Post by Klaus » Sun Aug 01, 2010 2:55 pm

Hi all,

"working" is an addition to "the screenrect" and therefore a reserved word.
See "screenrect" in the docs (Rev dictionary).


Best

Klaus

Judson
Posts: 26
Joined: Fri May 07, 2010 9:15 pm

Re: The use of the term "working"

Post by Judson » Sun Aug 01, 2010 4:42 pm

Thank you Klaus!

Post Reply