4D v14.3ARRAY PICTURE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
ARRAY PICTURE
|
ARRAY PICTURE ( arrayName ; size {; size2} ) | ||||||||
Parameter | Type | Description | ||||||
arrayName | Array |
![]() |
Name of the array | |||||
size | Longint |
![]() |
Number of elements in the array, or Number of rows if size2 is specified | |||||
size2 | Longint |
![]() |
Number of columns in a two-dimensional array | |||||
The ARRAY PICTURE command creates and/or resizes an array of Picture elements in memory.
While applying to an existing array:
This example creates a process array of 100 Picture elements:
ARRAY PICTURE(agValues;100)
This example creates a local array of 100 rows of 50 Picture elements:
ARRAY PICTURE($agValues;100;50)
This example creates an interprocess array of Picture elements and loads each picture into one of the elements of the array. The array’s size is equal to the number of 'PICT' resources available to the database. The array’s resource name starts with "User Intf/":
RESOURCE LIST("PICT";$aiResIDs;$asResNames)
ARRAY PICTURE(◊agValues;Size of array($aiResIDs))
$vlPictElem:=0
For($vlElem;1;Size of array(◊agValues))
If($asResNames{$vlElem}="User Intf/@")
$vlPictElem:=$vlPictElem+1
GET PICTURE RESOURCE("PICT";$aiResIDs{$vlElem};$vgPicture)
◊agValues{$vlPictElem}:=$vgPicture
End if
End for
ARRAY PICTURE(◊agValues;$vlPictElem)
Product: 4D
Theme: Arrays
Number:
279
Created: < 4D v6
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)