Call Process

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Search...

4D v16.6

Home
CALL PROCESS
Home 4D v16.6 CALL PROPERTIES 
4D Language Reference
Product: 4D

4D Language Reference
Process (Communications) Theme: Process (Communications)

Number: 329

Process (Communications)
About semaphores
CALL
PROCESSPROCESS 
About workers

CALL PROCESS  
 
CALL WORKER PAGE CONTENTS 
CALL PROCESS ( process ) 
CLEAR SEMAPHORE
Parameter Type   Description Description

GET PROCESS VARIABLE process  Longint Process Example

number
KILL WORKER  
Semaphore
HISTORY 
Description
  
SET PROCESS VARIABLE
Created: < 4D v6
Test semaphore CALL PROCESS calls the form  
displayed in the frontmost
VARIABLE TO VARIABLE
window of process. ARTICLE USAGE
  Important: CALL PROCESS only 4D Language Reference ( 4D v16)

  works between processes 4D Language Reference ( 4D v16.1)

4D Language Reference ( 4D v16.2)

running on the same machine. 4D Language Reference ( 4D v16.3)

If you call a process that does 4D Language Reference ( 4D v16.4)

4D Language Reference ( 4D v16.5)

not exist, nothing happens. 4D Language Reference ( 4D v16.6)

If process (the target process) is


not currently displaying a form,  
nothing happens. The form  
displayed in the target process
receives an On Outside Call
event. This event must be
enabled for that form in the
Design environment Form
Properties window, and you
must manage the event in the
form method. If the event is not
enabled or if it is not managed
in the form method, nothing
happens.
Note: The On Outside Call event
modifies the entry context of
the receiving input form. In
particular, if a field was being
edited, the On Data Change
event is generated.
The caller process (the process
from which CALL PROCESS is
executed) does not “wait”—
CALL PROCESS has an
immediate effect. If necessary,
you must write a waiting loop
for a reply from the called
process, using interprocess
variables or using process
 
 
 
 
 
 
  variables©(reserved
1985-2019
for4Dthis
SAS / 4D, Inc. All rights reserved.
purpose) that you can read and
write between the two
processes (using GET
PROCESS VARIABLE and SET
PROCESS VARIABLE).
To communicate between
processes that do not display
forms, use the GET PROCESS
VARIABLE and SET PROCESS
VARIABLE commands.
Tip: CALL PROCESS accepts
the alternate syntax CALL
PROCESS(-1). In order not to
slow down the execution of
methods, 4D does not redraw
interprocess variables each
time they are modified. If you
pass -1 instead of a process
reference number in the process
parameter, 4D does not post
any outside call. Instead, it
redraws all the interprocess
variables currently displayed in
all windows of any process
running on the same machine.

Example
 

See example for On Exit


database method.

See also 
Form event

GET PROCESS VARIABLE

SET PROCESS VARIABLE

Previous page Next page  

 
 
 
 
 
 
  © 1985-2019 4D SAS / 4D, Inc. All rights reserved.
 
 
 
 
 
 
  © 1985-2019 4D SAS / 4D, Inc. All rights reserved.

You might also like