Cloud Software Group, Inc. EBX®
ドキュメント>開発者ガイド>EBX®スクリプト>関数フィールドAPI
ナビゲーションモードドキュメント>開発者ガイド>EBX®スクリプト>関数フィールドAPI

ユニット core.resource

このスクリプトユニットメソッドは、スキーマタイプods:resourceと互換性のあるリソース参照を生成します。

例:


uses core.resource as resource;

export function getValue(): typeof record.functions.ResourceValue
begin
  return resource.toImage('ebx-test','on_anim_wait.gif');
end

メソッド

function toImage(moduleName: string, filePath: string): string

画像リソースへの参照を返します。

function toIcon(moduleName: string, filePath: string): string

アイコンリソースへの参照を返します。

function toJavaScript(moduleName: string, filePath: string): string

JavaScriptファイルリソースへの参照を返します。

function toStyleSheet(moduleName: string, filePath: string): string

スタイルシートファイルリソースへの参照を返します。

function toHtml(moduleName: string, filePath: string): string

画像リソースへの参照を返します。

function toImage(moduleName: string, filePath: string): string

画像リソースへの参照を返します。

パラメーター:

moduleName:モジュール名。

filePath:リソースのローカルファイルパス。

戻り値:

スキーマタイプods:resourceと互換性のあるリソース文字列。

function toIcon(moduleName: string, filePath: string): string

アイコンリソースへの参照を返します。

パラメーター:

moduleName:モジュール名。

filePath:リソースのローカルファイルパス。

戻り値:

スキーマタイプods:resourceと互換性のあるリソース文字列。

function toJavaScript(moduleName: string, filePath: string): string

JavaScriptファイルリソースへの参照を返します。

パラメーター:

moduleName:モジュール名。

filePath:リソースのローカルファイルパス。

戻り値:

スキーマタイプods:resourceと互換性のあるリソース文字列。

function toStyleSheet(moduleName: string, filePath: string): string

スタイルシートファイルリソースへの参照を返します。

パラメーター:

moduleName:モジュール名。

filePath:リソースのローカルファイルパス。

戻り値:

スキーマタイプods:resourceと互換性のあるリソース文字列。

function toHtml(moduleName: string, filePath: string): string

画像リソースへの参照を返します。

パラメーター:

moduleName:モジュール名。

filePath:リソースのローカルファイルパス。

戻り値:

スキーマタイプods:resourceと互換性のあるリソース文字列。

ドキュメント>開発者ガイド>EBX®スクリプト>関数フィールドAPI