4D v14.3Process number |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Process number
Process number
Process number returns the number of the process whose name you pass in name. If no process is found, Process number returns 0. The optional parameter * allows you to retrieve, from 4D Client, the process ID of a process that is executed on the server (a stored procedure). In this case, the returned value is negative. This option is especially useful when using the GET PROCESS VARIABLE, SET PROCESS VARIABLE and VARIABLE TO VARIABLE commands. Please refer to the descriptions of these commands for details. If the command is executed with the * parameter from a process on the server machine, the returned value is positive. You create a custom floating window, run in a separate process, in which you implement your own tools to interact with the Design environment. For example, when selecting an item in a hierarchical list of keywords, you want to paste some text into the frontmost window of the Design environment. To do so, you can use the pasteboard, but the pasting event must occur within the Design process. The following small function returns the process number of the Design process (if running):
` Design process number Project Method Using this function, the following project method pastes the text received as parameter to the frontmost window of the Design environment (if applicable): ` PASTE TEXT TO DESIGN Project Method |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v6 SEE ALSO
GET PROCESS VARIABLE ARTICLE USAGE
4D Language Reference ( 4D v12.4) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||