header image

Kushal Help : Generate Automated Code as a C# Solution

Generate Code 

After you have configured Forms, Menus Etc, you will be able to Generate Project. 

Please ensure that you have set proper Visual Studio Version in Preferences

 

Code will be generated in the folder which is specified in Project Details Form

Click on Generate Code

Kushal will check compilation and syntax errors in all forms.

Once Validation is process is over Kushal starts generating code.


 
After generating the code, a Popup Message will be shown, indicating that project generation is complete. You can click on Open Folder and run the application / generated source code in visual studio. 
 

If you are generating new source code, previously generated code folder (SRC) will rename as SRC 1 and new source code will get generate in SRC folder. (Folder name will get increment by one followed like SRC 2, SRC 3 etc.)


 Note: Before compiling the project, Kushal will check for possible Errors and Warnings (and pop up a window indicating all the possible issues). If any errors found in application, Kushal will not generate source code.


 For example you might have defined a button with predefined action and if you have not selected predefined action, and then you will not be able to generate the project. 

Some more examples of Warning and Error:

  • SQL statement is not set to the Dropdown in the form.
  • Custom Form not having any controls.
  • Any Menu is created or Created but not associated any menu to forms.
  • External command defined wrongly
  • Report file path is not defined wrong or not able to read permission.
  • Written custom code in expressions is having syntax errors / compilation errors.

 

When errors are shown, Kushal will also indicate which form the errors are from.  You may open that respective form and click on Check Error to list all the errors of that particular form. Before you generate the project, if you run check error in each form one by one, resolving all the errors before clicking on Generate Project makes the compilation step run smoothly without any hassle. 

Select the form 
 [Image]

Click on Check Errors