Topic: How to Organize Script File

Hello.

It looks as though MVD has a single code page called script that is used to store all code regardless of which form/control it's attached to. How are you organizing this one-page script when you have lots of forms with lots of code for each of the forms? Is it as simple as creating commented "headers" identifying the form and putting all code under the header? I'd appreciate hearing what you do to keep your script file straight.

Many Thanks.

Re: How to Organize Script File

Hello Clyde

MVD is coded as Pacal language (DELPHI RAD XE3 to be accurate).
To trigger a project, the compilator has to compile all instructions in the script (pascal) - file PAS becomes file DCU.

One might consider this type of cutting if it were an XML file.
One solution is to carefully document each procedure.

JB

Re: How to Organize Script File

clyde
Hello,


An example, how to use Uses command.

Post's attachments

Attachment icon Uses.zip 3.08 kb, 810 downloads since 2016-11-07 

Dmitry.

Re: How to Organize Script File

Thank you, Dmitry. That makes loads of sense - and provides me a way to help organize the code.