Tuesday, September 14, 2010

Comments

WhizBase version 6 adds support for comments. To avoid mistakes and removing parts of programming code written in other programming techniques and/or languages WhizBase uses hash and asterisk characters for opening and asterisk and hash characters for closing of the comments:
e.g.

Multiline comments are supported in the body of the reports and subreports (below ), and in included files ($WBINC and $WBRINC).
If you want to comment the variables in the configuration section(s) use the single hash (without asterisk) at the beginning of the row containing the variable:
e.g.
#WB_TempName=$default$
the line above will be completely ignored by WhizBase
or use in the single row:
e.g.
WB_Query=ID>1 #* and Year=2006 *# and ID<100
the line above will be processed to:
WB_Query=ID>1  and ID<100
or use in multilines:
e.g.
Hello World #* Here is a greeting
it is a greeting that we programmers use for testing our codes *#
this is WhizBase.
the line above will be processed to:
Hello World
this is WhizBase.
Beside documenting purposes comments can help you in debugging your WhizBase code - simply comment the part you suspect that generates the error and test the page again.

read more

No comments:

Post a Comment