Beruflich Dokumente
Kultur Dokumente
Creating New VPL (Visual Programming Language) for PWCT Lesson (1)
Note: This lesson is written on PWCT 1.8 Smart and using PWCT 1.9 Art the path C:\SSBUILD changed to
C:\PWCT19\SSBUILD and the path C:\SSBUILD\PWCT18 Changed to C:\PWCT19\SSBUILD\PWCT19
2- Open this folder and copy its contents (The folder NewVPL) to the C:\ SSBUILD folder which created
during the installation process of PWCT, as we did in figure 2.
The copied folder named NewVPL contains six subfolders as explained in the following table:
Folder content descriptions
Batch run.bat Batch file used to run/build the user application using
our new VPL.
Remove.bat Batch file used to uninstall the new VPL from PWCT
environment.
NewVPL.txt Text file contains five lines as following:
C:\ SSBUILD\NewVPL\PWCTDATA to determine the
Config new VPL database which we can keep our components
names and files paths.
NewVPLPWCT determine the name of the new VPL.
.txt is the extension of the generated source code file.
build: C:\SSBUILD\NewVPL\batch\run.bat determining
the batch file that will run the application.
C:\ SSBUILD\NewVPL\start/start.ssf the default
application when we run PWCT.
Start Contains the files needs to starting the new VPL
3- Install your new VPL by clicking the NewVPL\Config\install.bat > open PWCT framework >
change the active VPL from HarbourPWCT to your new VPL. In our case we called it
NewVPLPWCT. When you change the active VPL to yours, you will be asked about to keep using
the current source file after changing. As explained in figure 3 you dont have this case now, so
click NO.
After switching to the NewVPLPWCT we will have a default application just contains the first step
as shown in Figure 4
4- Now we are ready to test the new VPL, On the Project Location screen click run button from the
toolbar !, which will Invoke the run.bat file to build and run the start.txt file as shown in figure 5
5- In our case we will start to support HTML as new VPL, Go to the config folder and open the
NewVPL.txt file as shown in Figure 6 and change the extension to .html instead of .txt then save the
file.
6- Run Install.bat to reflect the update of the configuration file to PWCT environment.
7- Open the file Batch\run.bat and add %1 to run our start.html file. As shown in Figure 7
8- Run PWCT again>click step code button > write hello world> click run ! the output will be as
depicts in Figure 8.