Klik op het logo voor hulp op afstand
  
 
 
 
 
 
 
 




Scripting Function Reference P


Pause ()

JCALL

 

Pauses the script execution untill the user presses a key.

7     Example :

 

LineOut("Press a key to continue..");

FlushKbd();

repeat until KeyPressed();
LineOut("A key was pressed..");

LineOut("Press once again a key to continue..");
Pause();
LineOut("A key was pressed..");

 

&     KeyPressed

 

 

PC (Bforced) : Bclosed

JoPPS – V2.82

 

This function is an alias for ProjectClose.

&     ProjectClose

 

 

PerformAction (Scode) : S

PerformAction (Scode) : D

JoPPS - v2.30

 

Triggers the action with code Scode. The result set by the action is returned.

î       Scode is the code of the action to trigger.

 

ì       Returns the result as set by the action.

 

PI () : D

JoPPS/JCALL/JScripter

 

Returns the value of PI. (e.g. the number 3.1415926535897932385)

 

 

PluginHasRoutine( ? ) : ?

JoPPS – V2.82

 

To be documented.

 

 

PluginLoaded( ? ) : ?

JoPPS – V2.82

 

To be documented.

 

 

PluginMenuClick( ? ) : ?

JoPPS – V2.82

 

To be documented.

 

 

PN ([Sfn[,Sdesc[,SParams]]]) : B

JoPPS – V2.82

 

This function is an alias for ProjectNew.

&     ProjectNew

 

 

PO ([Sfn]) : B

JoPPS – V2.82

 

This function is an alias for ProjectClose.

&     ProjectClose

 

 

PrintResult ([Bui,Doption])

JoPPS

 

Prints results

 

î       If Bui is TRUE the JoPPS print dialog opens.
      If Bui is FALSE printing starts immediately without user interaction.
      Doption determines what to print, it can be one of the following constants:

Print option constants

Meaning

PRINT_CURRENT

Print result of report slot being viewed.

PRINT_LABELS

Print all label slots

PRINT_ALL

Print all report slots currently up-to-date.

 

 

PrintStr (S) : B

JoPPS

 

Prints the given text to the current print.

î       S is the text to print.

 

ì       Returns TRUE if successful, FALSE if not.

 

 

ProjectClose (Bforced) : Bclosed

JoPPS

 

Closes the current project. The project is removed from the projectpool.

î       Bforced indicates if the user is allowed to cancel to operation, if TRUE the project is always closed even if it is not saved.

 

ì       Returns TRUE if the current project was closed by the operation.

 

&     ProjectNew, ProjectOpen, ProjectCount

 

&     See also 3. Using JoPPS-Script in JoPPS for a discussion about the JoPPS projectpool.


 

ProjectCount () : D

JoPPS

 

Returns the number of open projects.

ì       Returns the size of the projectpool, thus the number of open projects

 

&     SetActiveProjectIndex, GetActiveProjectIndex

 

&    See also 3. Using JoPPS-Script in JoPPS for a discussion about the JoPPS projectpool.

 

 

ProjectNew ([Sfn[,Sdesc[,SParams]]]) : B

JoPPS

 

Adds a new project to the projectpool. The new project becomes the active project. The "new project" dialog is shown if the internal UI flag is TRUE, else it is not and the project is added to the projectpool immediately.

î       Sfn is the name for the new project. If an empty string is specified a default filename is assigned.
      Sdesc is the short description of the project.
      SParams is a collection string with default parameters specifying client code, system, filling and
      finishing codes. (e.g. "TECHWIN,TS50,GL20,51,51,51") Specify an empty string to keep a
      default value; for example if you only want to override the default filling code you could specify :
      "TECHWIN,,GL22".

 

ì       Returns TRUE if successful.

 

7     Example :


SetUI(FALSE);

ProjectNew("my project","","TECHWIN");

 

&    The following example creates a new project without showing the "new project" dialog :

 

&    See also 3. Using JoPPS-Script in JoPPS for a discussion about the JoPPS projectpool.  

 

&     ProjectClose, ProjectOpen, ProjectCount

M     A valid clientcode is required when the internal UI flag is FALSE.

 

 

ProjectOpen ([Sfn[,Dwarn]]) : B

JoPPS

 

Opens a project. The project is added to the projectpool.

î       Sfn is the filename of the project file (The JP extension is assumed), if no filename is specified the windows fileopen dialog will popup allowing the user to pick a file manually.

î       Dwarn specifies whether generation of warnings messages is enabled or disabled, if no warn parameter is specified warnings will be generated by default. Vanaf Jopps 3.10.

 

ì       Returns TRUE if successful, FALSE if not

 

&     ProjectClose, ProjectNew, ProjectCount

 

&    See also 3. Using JoPPS-Script in JoPPS for a discussion about the JoPPS projectpool.

 

 

ProjectSave ([Sfn]) : B

JoPPS

 

Saves the current project.

 

î       Sfn is an optional alternative filename for the project, by default the current project name is used.

        

ì       Returns TRUE if the file was saved, FALSE if it was not.

 

M     Existing files are overwritten without notice. Use GetProjectFilename and FileExists to ensure no existing files are overwritten.

&     ProjectSaveAs

 

ProjectSaveAs ([Sfn]) : B

JoPPS

 

Saves the current project under a new name. The windows SaveAs dialog is used to let the user

specify the new name.

î       Sfn is the new filename for the project.

 

ì       Returns TRUE if the file is saved, FALSE if it is not.

 

&     ProjectSave

 

M     The ProjectSaveAs function does not overwrite existing files without confirmation.

 

 

PS ([Sfn]) : B

JoPPS/JCALL – V2.82

 

This function is an alias for ProjectSave. 

&     ProjectSave

 

 




 |  History  |
 
 

 
 
 
TECHWIN SOFTWARE
De Regenboog 11
B-2800 Mechelen
T +32(0)15 44 64 64
T +31(0)30 899 32 15 Nederland