Command PV GET DRAG SIGNATURES

4D View

PV GET DRAG SIGNATURES

version 6.8


PV GET DRAG SIGNATURES (area; signatures)

ParameterTypeDescription
areaLongint4D View area
signaturesString ArraySignatures array

Description

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

See Also

PV GET DROP SIGNATURES, PV SET DRAG SIGNATURES.