GetFileCount Method (BUTTON)


PLBCMP GUI Only, 9.7A

 

The GetFileCount method retrieves the number of files that have been selected by an end-user using a BUTTON File Upload selection dialog for a client browser. This method uses the following format:

 

[label]

{object}.GetFileCount

[GIVING {return}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A Button object that is accessed.

return

Optional. A Numeric Variable that returns the file selection count.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The EOS flag is always cleared.

  2. The ZERO flag is set when the return value is zero.

  3. The OVER flag is set if the {return} variable is too small to store that value without being truncated.

  4. This method is only returns a file selection count when executing using the PL/B Web Server.

 

 

See Also: Button Methods, Method Syntax



PL/B Language Reference AamCancelMode Method (BUTTON) GetFileItem (BUTTON)