Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Testing Subroutines

Keywords:        test testing subroutines call called wbt

Question:

How do I test whether or not a subroutine has been called?

Answer:

No built in method. The best you can do is set a parameter or variable;

   ImCalling=@TRUE

   call("xxx.wbt","1 2 3")

   ImCalling=@FALSE
Then check the ImCalling variable with the IsDefined function.
Article ID:   W13187
Filename:   Testing whether or not a Call was Made.txt