|
|
|
|
- Reason
- Correction
- Examples
- Code for class declaration used in the button code
Error 1045: A class cannot be declared outside the declaration code of a class
The current code corresponds to a class declaration. This code is found in an event other than the class "Declaration" event. Check whether the class was created in your project and copy the declaration code of the class into the class "Declaration" event. Code for class declaration used in the button code Code triggering the error // -- Click on BTN_Button1 AFile is Class Name is string Extension is string Directory is string END
Possible correction Create the AFile class and copy the code for declaring the AFile class into the class "Declaration" event. // -- Declaration of AFile class AFile is Class Name is string Extension is string Directory is string END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|