4D v13

PV GET DRAG SIGNATURES

Home

 
4D View v13
PV GET DRAG SIGNATURES

PV GET DRAG SIGNATURES 


 

PV GET DRAG SIGNATURES ( area ; signatures ) 
Parameter Type   Description
area  Longint in 4D View area
signatures  String array in Signatures array

The PV GET DRAG SIGNATURES command gets the area's drag signatures in the signatures array.

Signatures are alphanumeric strings whose content is free. The maximum length for a signature is 32 characters.

Example  

Display a help message in cases where the area can be the object of an internal drag and drop.

 ARRAY TEXT($DragSignatureArray;0)
 ARRAY TEXT($DropSignatureArray;0)
 C_TEXT(HelpMessage)
 C_INTEGER($Index)
 
 PV GET DRAG SIGNATURES(Area;$DragSignatureArray)
 PV GET DROP SIGNATURES(Area;$DropSignatureArray)
 HelpMessage:=""
 For($Index;1;Size of array($DragSignatureArray)) `Look for a common signature
    If(Find in array($DropSignatureArray;$DragSignatureArray{$Index})#-1)
       HelpMessage:="You can drag and drop inside this area."
       $Index:=Size of array($DragSignatureArray)
    End if
 End for

 
PROPERTIES 

Product: 4D
Theme: PV Drag and drop
Number: 15836

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D View 6.8

 
SEE ALSO 

PV GET DROP SIGNATURES
PV SET DRAG SIGNATURES