4D View v16

PV GET DRAG SIGNATURES

Home

 
4D View v16
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_LONGINT($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



See also 

PV GET DROP SIGNATURES
PV SET DRAG SIGNATURES

 
PROPERTIES 

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

 
HISTORY 

Created: 4D View 6.8

 
ARTICLE USAGE

4D View Language ( 4D View v16)