Coding Standards/conventions Question:

Explain Functions Introduction?

Tweet Share WhatsApp

Answer:

Common used functions are placed within libraries in the SQABasic directory. Files ending with “.SBH” contain the public interface they provide to other libraries and scripts. Files ending with “SBL” contain the implementation of the public interface and private functions.

You use them by including them in your testscript or in another library. However, never ever include a .SBL-file into your script or library, instead include the header file only (.SBH) otherwise you run into cyclic redundancy problems and the compiled SBX file growths for nothing.

Example
GOOD:
'$include "axCommon.sbh"

FORBIDDEN:
'$include "axCommon.sbl"

Download Coding Standards PDF Read All 26 Coding Standards Questions
Previous QuestionNext Question
Explain Naming Convention Verification points?What is Functions Indention?