PRIM_WEB.File (PRIM_WEB.File)

File object selected using the file picker etc.

Ancestors - Object (PRIM_OBJT)

Details

A File object contains the details of the selected physical file object such as an image, video or sound.

Example

In this example, when a file is selected, the file name is used and the Blob is used to populate an image control as well as a Blob field.

     Evtroutine Handling(#FilePicker.FileSelected) File(#File) 

#Filename := #File.Name
#Image.FileName #xDemoblob := #File.Blob

Endroutine

Properties

Name

Description

Blob

File stored as a Blob

ComponentClassName

ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)

ComponentMembers

ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)

ComponentPatternName

ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)

ComponentTag

Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)

ComponentType

ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)

ComponentTypeName

ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)

FileSize

Size of the file

MimeType

File mime type

Name

Name of the file

Owner

Owner owns this component Inherited from Object (PRIM_OBJT)

Parent

The component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)

Events

Name

Description

CreateInstance

CreateInstance is signaled when an instance of a component is created Inherited from Object (PRIM_OBJT)

DestroyInstance

DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Object (PRIM_OBJT)


See also

All Component Classes

Technical Reference

  • No labels