Color Of Code

Font Size

SCREEN

Profile

Layout

Menu Style

Cpanel

DOORS / DXL Cheat Sheet

User Rating:  / 3
PoorBest 

Tips

Deactivation of (dangerous) the auto-declaration feature (put it for example in startup.dxl)

XFLAGS_ &= ~AutoDeclare_

Pitfalls

  • Functions that have only one string as parameter IGNORE the parenthesis. This often leads to unwanted and unexpected side effects.

a famous example of this behaviour:

string sA = "upper"
string sB = "lower"
print upper(sA) " " sB

yields unexpectedly:

"UPPER LOWER"

instead of what was intended:

"UPPER lower"

workaround, use paranthesis:

print (upper(sA)) " " sB
    • Avoid string concatenation (like "stra" " strb"): it adds entries to the global string table which keeps increasing in size. There is no way to free entries from the global string table. Only closing a DOORS session will end up in freeing the memory.

     

    Add comment


    Security code
    Refresh

    You are here: Home Cheat Sheets Programming DOORS / DXL Cheat Sheet