OraFormsGetPropStringArrayLen Function

Action

Returns the length (a number) of a string array property.

Include file

OraForms.bdh

Syntax

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

Return value

Number representing the length of the string array.

Parameter Description
sName The control's unique name or ID. The ID can be retrieved from the TrueLog's In Body page.
nPropId The property ID for the string array property, for example ORA_PID_VALUE.

Example

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