AddGlobalJavaScriptA

Document properties, JavaScript

תיאור

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddGlobalJavaScript and string arguments are interpreted using the current SetAnsiMode code page

מוסיף JavaScript למיקום גלובלי במסמך

לדוגמה, כך ניתן להגדיר פונקציות שאפשר לקרוא להן מ-JavaScript שמחובר לאירועים

תחביר

Delphi

Function DLAddGlobalJavaScriptA(InstanceID: Integer; PackageName, JavaScript: PAnsiChar): Integer;

DLL

int DLAddGlobalJavaScriptA(int InstanceID, const char * PackageName, const char * JavaScript);

פרמטרים

PackageNameהשם לאחסון ה-JavaScript תחתיו. אם כבר מאוחסן JavaScript תחת השם הזה הוא יוסר וה-JavaScript החדש יישמר במקומו
JavaScriptה-JavaScript לאחסון גלובלי תחת שם החבילה שצוין

ערכי החזרה

0ה-PackageName היה ריק
1ה־JavaScript נשמר בהצלחה