![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
I got bit by using the word "button" for a variable name. That one took a long time to find!
-Dennis |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Louie's TidBit #5: Function as Variable Names
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.