Report.Info in Constructor

Ask general questions here.
UgaAga
Posts: 69
Joined: Thu Mar 15, 2012 2:11 pm

Report.Info in Constructor

Post by UgaAga » Wed Aug 20, 2014 4:17 pm

Hi,
it appears to me that the infos which are reported in a constructor are in the console but aren't shown in the report later.

Public Sub New()
Report.Info("Deletes all files in the specified folder.")
End Sub

Is this correct? Can i change this behaviour?

Bye

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Report.Info in Constructor

Post by Support Team » Thu Aug 21, 2014 3:08 pm

Hi UgaAga,

It is due internal guidelines not recommended to add code to the constructor.
Please use the Init()-method in Recording Modules or the Run()-method in Code Modules in order to execute your desired code.

Regards,
Markus (S)