Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Louie's TidBit #5: Function as Variable Names
Topic Summary:
Created On: 14-Oct-2003 16:14
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 14-Oct-2003 16:14
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You need to be careful using Functions and Commands as variable names. While it will work most of the time you may run into an extremely wierd DXL bug that takes hours to debug, since they are not obvious at all.

You may get away by using "length" as a variable, but eventually DXL will confuse it with the "length()" function.

Some such words to avoid include: length, project, module, object, item, folder, link, column, view, user, baseline, and trigger. I tend to name my variables starting with len, prj, mod, obj, itm, fld, lnk, col, viw, usr, bl, and trg.

Clever editors know the names of these functions and will highlight their names, so if you accidentally name your variable it will turn into a different color, reminding you to be more careful.

- Louie
Report this to a Moderator Report this to a Moderator
 14-Oct-2003 16:59
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

I got bit by using the word "button" for a variable name. That one took a long time to find!

-Dennis
Report this to a Moderator Report this to a Moderator
 15-Oct-2003 13:08
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I recommend Crimson Editor. It has good syntax highlighting and is easy to cutomise to your own needs. And it is free!

www.crimsoneditor.com

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.