Language Reference Guide : C. Generated User Classes : _PictureField User Class : SetFileHandles Method
 
Share this page                  
SetFileHandles Method
The SetFileHandles method assigns file handles to all bitmaps in an array.
This method has the following syntax:
integer = _PictureFieldObject.SetFileHandles(ary = Array of Object,
          pic_dir = varchar(256) not null, picturefield =
          varchar(32) not null)
This method has the following parameters:
ary
Specifies the array in which to set handles
pic_dir
Specifies the file handle prefix (directory name)
picturefield
Specifies the name (that is, simple name, not full name) of the _PictureField attribute in ary
SetFileHandles loops through array argument, ary, and assigns CurObject.Handle to Bitmap.FileHandle in every row. It continues to loop even if an error occurs while loading the image, but displays an error in the Trace window.
If the SetFileHandles method is successful, it returns ER_OK. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.