OraFormsGetPropByteArrayLen Function

Action

Returns the length for a byte array property.

Include file

OraForms.bdh

Syntax

OraFormsGetPropByteArrayLen(  in sName   :  string,  
                               in nPropId :  number ) :  number; 

Return value

  • The length of the array on success
  • -1 otherwise
Parameter Description
sName The control's unique name.
nPropId The property ID for the byte array property, for example ORA_PID_BP_CHUNK.

Example

dcltrans 
  transaction TMain 
  var 
    nLen, nIndex : number;
  begin 
    OraFormsConnect("server module= iorganizer.fmx usesdi=yes userid= record=names); 
    OraFormsSetWindow( "BASE_DEMO_WINDOW"); 
    OraFormsMessageBoxButton("Question", ORA_ALERT_YES);
    nLen := OraFormsGetPropByteArrayLen("164", ORA_PID_BP_CHUNK);
    Print("nLen = "+string(nLen));
    for nIndex := 0 to nLen - 1 do
      Print(string(OraFormsGetPropByteArray("164", ORA_PID_BP_CHUNK, nIndex))); 
    end;
  end TMain;