PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
| DataInfo() |
This is an inbuilt function function provided by PPWIZARD.
This function can be used to determine the existance of or return information about any data structures created using the #data command.
The function takes 1 parameters as follows:
| EXAMPLE |
@@Data = "FRED"
;--- Make sure the DATA has 2 columns ---
if DataInfo(@@Data) = '' then
error('CustomActionData "' || @@Data || '" does not exist!');
@@ColCnt = DataInfo(@@Data || '.*.?')
if @@ColCnt <> 2 & @@ColCnt <> 0 then
error('CustomActionData "' || @@Data || '" should have had 2 columns, not ' || @@ColCnt || '!')