Documentation Center

PslProject.ImportBinaryResource

Imports a binary file (e.g a bitmap or icon) to its matching resource. The file to import must have a special name with internal numbers to find the matching translation list and resource. This file name is created when the resource has been exported, using ExportBinary without an explicit file name.

Syntax

Expression.ImportBinaryResource (Path as String) as Boolean

Expression Object of type PslProject

Path Path of the file to import. This path can contain wildcards like in "*.*" or "*.bmp" to import multiple files in one go.

Returns TRUE, if successful.

Example

' Imports all bitmaps from a folder to the current project
Sub Main
    Dim prj As PslProject
    Set prj = PSL.ActiveProject
    If prj Is Nothing Then Exit Sub
    prj.ImportBinaryResource("c:\ExportedImages\*.bmp")
End Sub