vbscript: Added VBScript_Global typelib.

This commit is contained in:
Jacek Caban 2011-09-16 16:56:24 +02:00 committed by Alexandre Julliard
parent 004210f1fb
commit 19a85797ab
3 changed files with 976 additions and 0 deletions

View File

@ -14,6 +14,7 @@ BISON_SRCS = \
RC_SRCS = vbscript.rc
IDL_TLB_SRCS = vbsglobal.idl
IDL_H_SRCS = vbscript_classes.idl
IDL_R_SRCS = vbscript_classes.idl

View File

@ -0,0 +1,220 @@
/*
* Copyright 2011 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define DISPID_GLOBAL_VBUSESYSTEM 0
#define DISPID_GLOBAL_USESYSTEMDAYOFWEEK 1
#define DISPID_GLOBAL_VBSUNDAY 2
#define DISPID_GLOBAL_VBMONDAY 3
#define DISPID_GLOBAL_VBTUESDAY 4
#define DISPID_GLOBAL_VBWEDNESDAY 5
#define DISPID_GLOBAL_VBTHURSDAY 6
#define DISPID_GLOBAL_VBFRIDAY 7
#define DISPID_GLOBAL_VBSATURDAY 8
#define DISPID_GLOBAL_VBFIRSTJAN1 9
#define DISPID_GLOBAL_VBFIRSTFOURDAYS 10
#define DISPID_GLOBAL_VBFIRSTFULLWEEK 11
#define DISPID_GLOBAL_VBOKONLY 12
#define DISPID_GLOBAL_VBOKCANCEL 13
#define DISPID_GLOBAL_VBABORTRETRYIGNORE 14
#define DISPID_GLOBAL_VBYESNOCANCEL 15
#define DISPID_GLOBAL_VBYESNO 16
#define DISPID_GLOBAL_VBRETRYCANCEL 17
#define DISPID_GLOBAL_VBCRITICAL 18
#define DISPID_GLOBAL_VBQUESTION 19
#define DISPID_GLOBAL_VBEXCLAMATION 20
#define DISPID_GLOBAL_VBINFORMATION 21
#define DISPID_GLOBAL_VBDEFAULTBUTTON1 22
#define DISPID_GLOBAL_VBDEFAULTBUTTON2 23
#define DISPID_GLOBAL_VBDEFAULTBUTTON3 24
#define DISPID_GLOBAL_VBDEFAULTBUTTON4 25
#define DISPID_GLOBAL_VBAPPLICATIONMODAL 26
#define DISPID_GLOBAL_VBSYSTEMMODAL 27
#define DISPID_GLOBAL_VBOK 28
#define DISPID_GLOBAL_VBCANCEL 29
#define DISPID_GLOBAL_VBABORT 30
#define DISPID_GLOBAL_VBRETRY 31
#define DISPID_GLOBAL_VBIGNORE 32
#define DISPID_GLOBAL_VBYES 33
#define DISPID_GLOBAL_VBNO 34
#define DISPID_GLOBAL_VBEMPTY 35
#define DISPID_GLOBAL_VBNULL 36
#define DISPID_GLOBAL_VBINTEGER 37
#define DISPID_GLOBAL_VBLONG 38
#define DISPID_GLOBAL_VBSINGLE 39
#define DISPID_GLOBAL_VBDOUBLE 40
#define DISPID_GLOBAL_VBCURRENCY 41
#define DISPID_GLOBAL_VBDATE 42
#define DISPID_GLOBAL_VBSTRING 43
#define DISPID_GLOBAL_VBOBJECT 44
#define DISPID_GLOBAL_VBERROR 45
#define DISPID_GLOBAL_VBBOOLEAN 46
#define DISPID_GLOBAL_VBVARIANT 47
#define DISPID_GLOBAL_VBDATAOBJECT 48
#define DISPID_GLOBAL_VBDECIMAL 49
#define DISPID_GLOBAL_VBBYTE 50
#define DISPID_GLOBAL_VBARRAY 51
#define DISPID_GLOBAL_VBTRUE 52
#define DISPID_GLOBAL_VBFALSE 53
#define DISPID_GLOBAL_VBUSEDEFAULT 54
#define DISPID_GLOBAL_VBBINARYCOMPARE 55
#define DISPID_GLOBAL_VBTEXTCOMPARE 56
#define DISPID_GLOBAL_VBDATABASECOMPARE 57
#define DISPID_GLOBAL_VBGENERALDATE 58
#define DISPID_GLOBAL_VBLONGDATE 59
#define DISPID_GLOBAL_VBSHORTDATE 60
#define DISPID_GLOBAL_VBLONGTIME 61
#define DISPID_GLOBAL_VBSHORTTIME 62
#define DISPID_GLOBAL_VBOBJECTERROR 63
#define DISPID_GLOBAL_VBBLACK 64
#define DISPID_GLOBAL_VBBLUE 65
#define DISPID_GLOBAL_VBCYAN 66
#define DISPID_GLOBAL_VBGREEN 67
#define DISPID_GLOBAL_VBMAGENTA 68
#define DISPID_GLOBAL_VBRED 69
#define DISPID_GLOBAL_VBWHITE 70
#define DISPID_GLOBAL_VBYELLOW 71
#define DISPID_GLOBAL_VBCR 72
#define DISPID_GLOBAL_VBCRLF 73
#define DISPID_GLOBAL_VBNEWLINE 74
#define DISPID_GLOBAL_VBFORMFEED 75
#define DISPID_GLOBAL_VBLF 76
#define DISPID_GLOBAL_VBNULLCHAR 77
#define DISPID_GLOBAL_VBNULLSTRING 78
#define DISPID_GLOBAL_VBTAB 79
#define DISPID_GLOBAL_VBVERTICALTAB 80
#define DISPID_GLOBAL_VBMSGBOXHELPBUTTON 207
#define DISPID_GLOBAL_VBMSGBOXSETFOREGROUND 208
#define DISPID_GLOBAL_VBMSGBOXRIGHT 209
#define DISPID_GLOBAL_VBMSGBOXRTLREADING 210
#define DISPID_GLOBAL_CCUR 100
#define DISPID_GLOBAL_CINT 101
#define DISPID_GLOBAL_CLNG 102
#define DISPID_GLOBAL_CBOOL 103
#define DISPID_GLOBAL_CBYTE 104
#define DISPID_GLOBAL_CDATE 105
#define DISPID_GLOBAL_CDBL 106
#define DISPID_GLOBAL_CSNG 107
#define DISPID_GLOBAL_CSTR 108
#define DISPID_GLOBAL_HEX 109
#define DISPID_GLOBAL_OCT 110
#define DISPID_GLOBAL_VARTYPE 111
#define DISPID_GLOBAL_ISDATE 112
#define DISPID_GLOBAL_ISEMPTY 113
#define DISPID_GLOBAL_ISNULL 114
#define DISPID_GLOBAL_ISNUMERIC 115
#define DISPID_GLOBAL_ISARRAY 116
#define DISPID_GLOBAL_ISOBJECT 117
#define DISPID_GLOBAL_ATN 118
#define DISPID_GLOBAL_COS 119
#define DISPID_GLOBAL_SIN 120
#define DISPID_GLOBAL_TAN 121
#define DISPID_GLOBAL_EXP 122
#define DISPID_GLOBAL_LOG 123
#define DISPID_GLOBAL_SQR 124
#define DISPID_GLOBAL_RANDOMIZE 125
#define DISPID_GLOBAL_RND 126
#define DISPID_GLOBAL_TIMER 127
#define DISPID_GLOBAL_LBOUND 128
#define DISPID_GLOBAL_UBOUND 129
#define DISPID_GLOBAL_RGB 130
#define DISPID_GLOBAL_LEN 131
#define DISPID_GLOBAL_LENB 132
#define DISPID_GLOBAL_LEFT 133
#define DISPID_GLOBAL_LEFTB 134
#define DISPID_GLOBAL_RIGHT 135
#define DISPID_GLOBAL_RIGHTB 136
#define DISPID_GLOBAL_MID 137
#define DISPID_GLOBAL_MIDB 138
#define DISPID_GLOBAL_STRCOMP 139
#define DISPID_GLOBAL_LCASE 140
#define DISPID_GLOBAL_UCASE 141
#define DISPID_GLOBAL_LTRIM 142
#define DISPID_GLOBAL_RTRIM 143
#define DISPID_GLOBAL_TRIM 144
#define DISPID_GLOBAL_SPACE 145
#define DISPID_GLOBAL_STRING 146
#define DISPID_GLOBAL_INSTR 147
#define DISPID_GLOBAL_INSTRB 148
#define DISPID_GLOBAL_ASCB 149
#define DISPID_GLOBAL_CHRB 150
#define DISPID_GLOBAL_ASC 151
#define DISPID_GLOBAL_CHR 152
#define DISPID_GLOBAL_ASCW 153
#define DISPID_GLOBAL_CHRW 154
#define DISPID_GLOBAL_ABS 155
#define DISPID_GLOBAL_FIX 156
#define DISPID_GLOBAL_INT 157
#define DISPID_GLOBAL_SGN 158
#define DISPID_GLOBAL_NOW 159
#define DISPID_GLOBAL_DATE 160
#define DISPID_GLOBAL_TIME 161
#define DISPID_GLOBAL_DAY 162
#define DISPID_GLOBAL_MONTH 163
#define DISPID_GLOBAL_WEEKDAY 164
#define DISPID_GLOBAL_YEAR 165
#define DISPID_GLOBAL_HOUR 166
#define DISPID_GLOBAL_MINUTE 167
#define DISPID_GLOBAL_SECOND 168
#define DISPID_GLOBAL_DATEVALUE 169
#define DISPID_GLOBAL_TIMEVALUE 170
#define DISPID_GLOBAL_DATESERIAL 171
#define DISPID_GLOBAL_TIMESERIAL 172
#define DISPID_GLOBAL_INPUTBOX 173
#define DISPID_GLOBAL_MSGBOX 174
#define DISPID_GLOBAL_CREATEOBJECT 175
#define DISPID_GLOBAL_GETOBJECT 176
#define DISPID_GLOBAL_DATEADD 177
#define DISPID_GLOBAL_DATEDIFF 178
#define DISPID_GLOBAL_DATEPART 179
#define DISPID_GLOBAL_TYPENAME 180
#define DISPID_GLOBAL_ARRAY 181
#define DISPID_GLOBAL_ERASE 182
#define DISPID_GLOBAL_FILTER 183
#define DISPID_GLOBAL_JOIN 184
#define DISPID_GLOBAL_SPLIT 185
#define DISPID_GLOBAL_REPLACE 186
#define DISPID_GLOBAL_STRREVERSE 187
#define DISPID_GLOBAL_INSTRREV 188
#define DISPID_GLOBAL_LOADPICTURE 189
#define DISPID_GLOBAL_SCRIPTENGINE 190
#define DISPID_GLOBAL_SCRIPTENGINEMAJORVERSION 191
#define DISPID_GLOBAL_SCRIPTENGINEMINORVERSION 192
#define DISPID_GLOBAL_SCRIPTENGINEBUILDVERSION 193
#define DISPID_GLOBAL_FORMATNUMBER 194
#define DISPID_GLOBAL_FORMATCURRENCY 195
#define DISPID_GLOBAL_FORMATPERCENT 196
#define DISPID_GLOBAL_FORMATDATETIME 197
#define DISPID_GLOBAL_WEEKDAYNAME 198
#define DISPID_GLOBAL_MONTHNAME 199
#define DISPID_GLOBAL_ROUND 200
#define DISPID_GLOBAL_ESCAPE 201
#define DISPID_GLOBAL_UNESCAPE 202
#define DISPID_GLOBAL_EVAL 203
#define DISPID_GLOBAL_EXECUTE 204
#define DISPID_GLOBAL_EXECUTEGLOBAL 205
#define DISPID_GLOBAL_GETREF 206
#define DISPID_ERR_DESCRIPTION 0
#define DISPID_ERR_HELPCONTEXT 1
#define DISPID_ERR_HELPFILE 2
#define DISPID_ERR_NUMBER 3
#define DISPID_ERR_SOURCE 4
#define DISPID_ERR_CLEAR 100
#define DISPID_ERR_RAISE 101

755
dlls/vbscript/vbsglobal.idl Normal file
View File

@ -0,0 +1,755 @@
/*
* Copyright 2011 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "oaidl.idl";
#include "vbscript_defs.h"
[
helpstring("Microsoft VBScript Globals"),
uuid(3eef9758-35fc-11d1-8ce4-00c04fc2b185),
version(1.0)
]
library VBScript_Global
{
importlib("stdole2.tlb");
[
uuid(3eef9758-35fc-11d1-8ce4-00c04fc2B186)
]
dispinterface GlobalObj {
properties:
[id(DISPID_GLOBAL_VBUSESYSTEM), readonly]
VARIANT vbUseSystem;
[id(DISPID_GLOBAL_USESYSTEMDAYOFWEEK), readonly]
VARIANT vbUseSystemDayOfWeek;
[id(DISPID_GLOBAL_VBSUNDAY), readonly]
VARIANT vbSunday;
[id(DISPID_GLOBAL_VBMONDAY), readonly]
VARIANT vbMonday;
[id(DISPID_GLOBAL_VBTUESDAY), readonly]
VARIANT vbTuesday;
[id(DISPID_GLOBAL_VBWEDNESDAY), readonly]
VARIANT vbWednesday;
[id(DISPID_GLOBAL_VBTHURSDAY), readonly]
VARIANT vbThursday;
[id(DISPID_GLOBAL_VBFRIDAY), readonly]
VARIANT vbFriday;
[id(DISPID_GLOBAL_VBSATURDAY), readonly]
VARIANT vbSaturday;
[id(DISPID_GLOBAL_VBFIRSTJAN1), readonly]
VARIANT vbFirstJan1;
[id(DISPID_GLOBAL_VBFIRSTFOURDAYS), readonly]
VARIANT vbFirstFourDays;
[id(DISPID_GLOBAL_VBFIRSTFULLWEEK), readonly]
VARIANT vbFirstFullWeek;
[id(DISPID_GLOBAL_VBOKONLY), readonly]
VARIANT vbOKOnly;
[id(DISPID_GLOBAL_VBOKCANCEL), readonly]
VARIANT vbOKCancel;
[id(DISPID_GLOBAL_VBABORTRETRYIGNORE), readonly]
VARIANT vbAbortRetryIgnore;
[id(DISPID_GLOBAL_VBYESNOCANCEL), readonly]
VARIANT vbYesNoCancel;
[id(DISPID_GLOBAL_VBYESNO), readonly]
VARIANT vbYesNo;
[id(DISPID_GLOBAL_VBYESNOCANCEL), readonly]
VARIANT vbRetryCancel;
[id(DISPID_GLOBAL_VBCRITICAL), readonly]
VARIANT vbCritical;
[id(DISPID_GLOBAL_VBQUESTION), readonly]
VARIANT vbQuestion;
[id(DISPID_GLOBAL_VBEXCLAMATION), readonly]
VARIANT vbExclamation;
[id(DISPID_GLOBAL_VBINFORMATION), readonly]
VARIANT vbInformation;
[id(DISPID_GLOBAL_VBDEFAULTBUTTON1), readonly]
VARIANT vbDefaultButton1;
[id(DISPID_GLOBAL_VBDEFAULTBUTTON2), readonly]
VARIANT vbDefaultButton2;
[id(DISPID_GLOBAL_VBDEFAULTBUTTON3), readonly]
VARIANT vbDefaultButton3;
[id(DISPID_GLOBAL_VBDEFAULTBUTTON4), readonly]
VARIANT vbDefaultButton4;
[id(DISPID_GLOBAL_VBAPPLICATIONMODAL), readonly]
VARIANT vbApplicationModal;
[id(DISPID_GLOBAL_VBSYSTEMMODAL), readonly]
VARIANT vbSystemModal;
[id(DISPID_GLOBAL_VBOK), readonly]
VARIANT vbOK;
[id(DISPID_GLOBAL_VBCANCEL), readonly]
VARIANT vbCancel;
[id(DISPID_GLOBAL_VBABORT), readonly]
VARIANT vbAbort;
[id(DISPID_GLOBAL_VBRETRY), readonly]
VARIANT vbRetry;
[id(DISPID_GLOBAL_VBIGNORE), readonly]
VARIANT vbIgnore;
[id(DISPID_GLOBAL_VBYES), readonly]
VARIANT vbYes;
[id(DISPID_GLOBAL_VBNO), readonly]
VARIANT vbNo;
[id(DISPID_GLOBAL_VBEMPTY), readonly]
VARIANT vbEmpty;
[id(DISPID_GLOBAL_VBNULL), readonly]
VARIANT vbNull;
[id(DISPID_GLOBAL_VBINTEGER), readonly]
VARIANT vbInteger;
[id(DISPID_GLOBAL_VBLONG), readonly]
VARIANT vbLong;
[id(DISPID_GLOBAL_VBSINGLE), readonly]
VARIANT vbSingle;
[id(DISPID_GLOBAL_VBDOUBLE), readonly]
VARIANT vbDouble;
[id(DISPID_GLOBAL_VBCURRENCY), readonly]
VARIANT vbCurrency;
[id(DISPID_GLOBAL_VBDATE), readonly]
VARIANT vbDate;
[id(DISPID_GLOBAL_VBSTRING), readonly]
VARIANT vbString;
[id(DISPID_GLOBAL_VBOBJECT), readonly]
VARIANT vbObject;
[id(DISPID_GLOBAL_VBERROR), readonly]
VARIANT vbError;
[id(DISPID_GLOBAL_VBBOOLEAN), readonly]
VARIANT vbBoolean;
[id(DISPID_GLOBAL_VBVARIANT), readonly]
VARIANT vbVariant;
[id(DISPID_GLOBAL_VBDATAOBJECT), readonly]
VARIANT vbDataObject;
[id(DISPID_GLOBAL_VBDECIMAL), readonly]
VARIANT vbDecimal;
[id(DISPID_GLOBAL_VBBYTE), readonly]
VARIANT vbByte;
[id(DISPID_GLOBAL_VBARRAY), readonly]
VARIANT vbArray;
[id(DISPID_GLOBAL_VBTRUE), readonly]
VARIANT vbTrue;
[id(DISPID_GLOBAL_VBFALSE), readonly]
VARIANT vbFalse;
[id(DISPID_GLOBAL_VBUSEDEFAULT), readonly]
VARIANT vbUseDefault;
[id(DISPID_GLOBAL_VBBINARYCOMPARE), readonly]
VARIANT vbBinaryCompare;
[id(DISPID_GLOBAL_VBTEXTCOMPARE), readonly]
VARIANT vbTextCompare;
[id(DISPID_GLOBAL_VBDATABASECOMPARE), readonly]
VARIANT vbDatabaseCompare;
[id(DISPID_GLOBAL_VBGENERALDATE), readonly]
VARIANT vbGeneralDate;
[id(DISPID_GLOBAL_VBLONGDATE), readonly]
VARIANT vbLongDate;
[id(DISPID_GLOBAL_VBSHORTDATE), readonly]
VARIANT vbShortDate;
[id(DISPID_GLOBAL_VBLONGTIME), readonly]
VARIANT vbLongTime;
[id(DISPID_GLOBAL_VBSHORTTIME), readonly]
VARIANT vbShortTime;
[id(DISPID_GLOBAL_VBOBJECTERROR), readonly]
VARIANT vbObjectError;
[id(DISPID_GLOBAL_VBBLACK), readonly]
VARIANT vbBlack;
[id(DISPID_GLOBAL_VBBLUE), readonly]
VARIANT vbBlue;
[id(DISPID_GLOBAL_VBCYAN), readonly]
VARIANT vbCyan;
[id(DISPID_GLOBAL_VBGREEN), readonly]
VARIANT vbGreen;
[id(DISPID_GLOBAL_VBMAGENTA), readonly]
VARIANT vbMagenta;
[id(DISPID_GLOBAL_VBRED), readonly]
VARIANT vbRed;
[id(DISPID_GLOBAL_VBWHITE), readonly]
VARIANT vbWhite;
[id(DISPID_GLOBAL_VBYELLOW), readonly]
VARIANT vbYellow;
[id(DISPID_GLOBAL_VBCR), readonly]
VARIANT vbCr;
[id(DISPID_GLOBAL_VBCRLF), readonly]
VARIANT vbCrLf;
[id(DISPID_GLOBAL_VBNEWLINE), readonly]
VARIANT vbNewLine;
[id(DISPID_GLOBAL_VBFORMFEED), readonly]
VARIANT vbFormFeed;
[id(DISPID_GLOBAL_VBLF), readonly]
VARIANT vbLf;
[id(DISPID_GLOBAL_VBNULLCHAR), readonly]
VARIANT vbNullChar;
[id(DISPID_GLOBAL_VBNULLSTRING), readonly]
VARIANT vbNullString;
[id(DISPID_GLOBAL_VBTAB), readonly]
VARIANT vbTab;
[id(DISPID_GLOBAL_VBVERTICALTAB), readonly]
VARIANT vbVerticalTab;
[id(DISPID_GLOBAL_VBMSGBOXHELPBUTTON), readonly]
VARIANT vbMsgBoxHelpButton;
[id(DISPID_GLOBAL_VBMSGBOXSETFOREGROUND), readonly]
VARIANT vbMsgBoxSetForeground;
[id(DISPID_GLOBAL_VBMSGBOXRIGHT), readonly]
VARIANT vbMsgBoxRight;
[id(DISPID_GLOBAL_VBMSGBOXRTLREADING), readonly]
VARIANT vbMsgBoxRtlReading;
methods:
[id(DISPID_GLOBAL_CCUR)]
VARIANT CCur(VARIANT expression);
[id(DISPID_GLOBAL_CINT)]
VARIANT CInt(VARIANT expression);
[id(DISPID_GLOBAL_CLNG)]
VARIANT CLng(VARIANT expression);
[id(DISPID_GLOBAL_CBOOL)]
VARIANT CBool(VARIANT expression);
[id(DISPID_GLOBAL_CBYTE)]
VARIANT CByte(VARIANT expression);
[id(DISPID_GLOBAL_CDATE)]
VARIANT CDate(VARIANT expression);
[id(DISPID_GLOBAL_CDBL)]
VARIANT CDbl(VARIANT expression);
[id(DISPID_GLOBAL_CSNG)]
VARIANT CSng(VARIANT expression);
[id(DISPID_GLOBAL_CSTR)]
VARIANT CStr(VARIANT expression);
[id(DISPID_GLOBAL_HEX)]
VARIANT Hex(VARIANT number);
[id(DISPID_GLOBAL_OCT)]
VARIANT Oct(VARIANT number);
[id(DISPID_GLOBAL_VARTYPE)]
VARIANT VarType(VARIANT varname);
[id(DISPID_GLOBAL_ISDATE)]
VARIANT IsDate(VARIANT expression);
[id(DISPID_GLOBAL_ISEMPTY)]
VARIANT IsEmpty(VARIANT expression);
[id(DISPID_GLOBAL_ISNULL)]
VARIANT IsNull(VARIANT expression);
[id(DISPID_GLOBAL_ISNUMERIC)]
VARIANT IsNumeric(VARIANT expression);
[id(DISPID_GLOBAL_ISARRAY)]
VARIANT IsArray(VARIANT expression);
[id(DISPID_GLOBAL_ISOBJECT)]
VARIANT IsObject(VARIANT identifier);
[id(DISPID_GLOBAL_ATN)]
VARIANT Atn(VARIANT number);
[id(DISPID_GLOBAL_COS)]
VARIANT Cos(VARIANT number);
[id(DISPID_GLOBAL_SIN)]
VARIANT Sin(VARIANT number);
[id(DISPID_GLOBAL_TAN)]
VARIANT Tan(VARIANT number);
[id(DISPID_GLOBAL_EXP)]
VARIANT Exp(VARIANT number);
[id(DISPID_GLOBAL_LOG)]
VARIANT Log(VARIANT number);
[id(DISPID_GLOBAL_SQR)]
VARIANT Sqr(VARIANT number);
[id(DISPID_GLOBAL_RANDOMIZE)]
VARIANT Randomize(VARIANT number);
[id(DISPID_GLOBAL_RND)]
VARIANT Rnd(VARIANT number);
[id(DISPID_GLOBAL_TIMER)]
VARIANT Timer();
[id(DISPID_GLOBAL_LBOUND)]
VARIANT LBound(VARIANT arrayname);
[id(DISPID_GLOBAL_UBOUND)]
VARIANT UBound(VARIANT arrayname);
[id(DISPID_GLOBAL_RGB)]
VARIANT RGB(
VARIANT red,
VARIANT green,
VARIANT blue);
[id(DISPID_GLOBAL_LEN)]
VARIANT Len(VARIANT string);
[id(DISPID_GLOBAL_LENB)]
VARIANT LenB(VARIANT string);
[id(DISPID_GLOBAL_LEFT)]
VARIANT Left(
VARIANT string,
VARIANT length);
[id(DISPID_GLOBAL_LEFTB)]
VARIANT LeftB(
VARIANT string,
VARIANT length);
[id(DISPID_GLOBAL_RIGHT)]
VARIANT Right(
VARIANT string,
VARIANT length);
[id(DISPID_GLOBAL_RIGHTB)]
VARIANT RightB(
VARIANT string,
VARIANT length);
[id(DISPID_GLOBAL_MID)]
VARIANT Mid(
VARIANT string,
VARIANT start,
[optional] VARIANT length);
[id(DISPID_GLOBAL_MIDB)]
VARIANT MidB(
VARIANT string,
VARIANT start,
[optional] VARIANT length);
[id(DISPID_GLOBAL_STRCOMP)]
VARIANT StrComp(
VARIANT string1,
VARIANT string2,
[optional] VARIANT compare);
[id(DISPID_GLOBAL_LCASE)]
VARIANT LCase(VARIANT string);
[id(DISPID_GLOBAL_UCASE)]
VARIANT UCase(VARIANT string);
[id(DISPID_GLOBAL_LTRIM)]
VARIANT LTrim(VARIANT string);
[id(DISPID_GLOBAL_RTRIM)]
VARIANT RTrim(VARIANT string);
[id(DISPID_GLOBAL_TRIM)]
VARIANT Trim(VARIANT string);
[id(DISPID_GLOBAL_SPACE)]
VARIANT Space(VARIANT number);
[id(DISPID_GLOBAL_STRING)]
VARIANT string(
[optional] VARIANT number,
[optional] VARIANT character);
[id(DISPID_GLOBAL_INSTR)]
VARIANT InStr(
VARIANT start,
VARIANT string,
VARIANT string2,
[optional] VARIANT compare);
[id(DISPID_GLOBAL_INSTRB)]
VARIANT InStrB(
VARIANT start,
VARIANT string,
VARIANT string2,
[optional] VARIANT compare);
[id(DISPID_GLOBAL_ASCB)]
VARIANT AscB(VARIANT string);
[id(DISPID_GLOBAL_CHRB)]
VARIANT ChrB(VARIANT charcode);
[id(DISPID_GLOBAL_ASC)]
VARIANT Asc(VARIANT string);
[id(DISPID_GLOBAL_CHR)]
VARIANT Chr(VARIANT charcode);
[id(DISPID_GLOBAL_ASCW)]
VARIANT AscW(VARIANT string);
[id(DISPID_GLOBAL_CHRW)]
VARIANT ChrW(VARIANT charcode);
[id(DISPID_GLOBAL_ABS)]
VARIANT Abs(VARIANT number);
[id(DISPID_GLOBAL_FIX)]
VARIANT Fix(VARIANT number);
[id(DISPID_GLOBAL_INT)]
VARIANT Int(VARIANT number);
[id(DISPID_GLOBAL_SGN)]
VARIANT Sgn(VARIANT number);
[id(DISPID_GLOBAL_NOW)]
VARIANT Now();
[id(DISPID_GLOBAL_DATE)]
VARIANT Date();
[id(DISPID_GLOBAL_TIME)]
VARIANT Time();
[id(DISPID_GLOBAL_DAY)]
VARIANT Day(VARIANT Date);
[id(DISPID_GLOBAL_MONTH)]
VARIANT Month(VARIANT Date);
[id(DISPID_GLOBAL_WEEKDAY)]
VARIANT Weekday(
VARIANT Date,
[optional] VARIANT firstdayofweek);
[id(DISPID_GLOBAL_YEAR)]
VARIANT Year(VARIANT Date);
[id(DISPID_GLOBAL_HOUR)]
VARIANT Hour(VARIANT Time);
[id(DISPID_GLOBAL_MINUTE)]
VARIANT Minute(VARIANT Time);
[id(DISPID_GLOBAL_SECOND)]
VARIANT Second(VARIANT Time);
[id(DISPID_GLOBAL_DATEVALUE)]
VARIANT DateValue(VARIANT Date);
[id(DISPID_GLOBAL_TIMEVALUE)]
VARIANT TimeValue(VARIANT Time);
[id(DISPID_GLOBAL_DATESERIAL)]
VARIANT DateSerial(
VARIANT Year,
VARIANT Month,
VARIANT Date);
[id(DISPID_GLOBAL_TIMESERIAL)]
VARIANT TimeSerial(
VARIANT Hour,
VARIANT Minute,
VARIANT Second);
[id(DISPID_GLOBAL_INPUTBOX)]
VARIANT InputBox(
VARIANT prompt,
[optional] VARIANT title,
[optional] VARIANT defaultValue,
[optional] VARIANT xpos,
[optional] VARIANT ypos,
[optional] VARIANT helpfile,
[optional] VARIANT context);
[id(DISPID_GLOBAL_MSGBOX)]
VARIANT MsgBox(
VARIANT prompt,
[optional] VARIANT buttons,
[optional] VARIANT title,
[optional] VARIANT helpfile,
[optional] VARIANT context);
[id(DISPID_GLOBAL_CREATEOBJECT)]
VARIANT CreateObject(VARIANT classValue);
[id(DISPID_GLOBAL_GETOBJECT)]
VARIANT GetObject(
[optional] VARIANT pathname,
[optional] VARIANT classValue);
[id(DISPID_GLOBAL_DATEADD)]
VARIANT DateAdd(
VARIANT interval,
VARIANT number,
VARIANT Date);
[id(DISPID_GLOBAL_DATEDIFF)]
VARIANT DateDiff(
VARIANT interval,
VARIANT date1,
VARIANT date2,
[optional] VARIANT firstdayofweek,
[optional] VARIANT firstdayofyear);
[id(DISPID_GLOBAL_DATEPART)]
VARIANT DatePart(
VARIANT interval,
VARIANT Date,
[optional] VARIANT firstdayofweek,
[optional] VARIANT firstdayofyear);
[id(DISPID_GLOBAL_TYPENAME)]
VARIANT TypeName(VARIANT varname);
[id(DISPID_GLOBAL_ARRAY)]
VARIANT Array(VARIANT arglist);
[id(DISPID_GLOBAL_ERASE)]
VARIANT Erase(VARIANT arraylist);
[id(DISPID_GLOBAL_FILTER)]
VARIANT Filter(
VARIANT InputStrings,
VARIANT Value,
[optional] VARIANT Include,
[optional] VARIANT compare);
[id(DISPID_GLOBAL_JOIN)]
VARIANT Join(
VARIANT list,
[optional] VARIANT delimiter);
[id(DISPID_GLOBAL_SPLIT)]
VARIANT Split(
VARIANT expression,
[optional] VARIANT delimiter,
[optional] VARIANT count,
[optional] VARIANT compare);
[id(DISPID_GLOBAL_REPLACE)]
VARIANT Replace(
VARIANT expression,
VARIANT find,
VARIANT replacement,
[optional] VARIANT start,
[optional] VARIANT count,
[optional] VARIANT compare);
[id(DISPID_GLOBAL_STRREVERSE)]
VARIANT StrReverse(VARIANT string1);
[id(DISPID_GLOBAL_INSTRREV)]
VARIANT InStrRev(
VARIANT string1,
VARIANT string2,
[optional] VARIANT start,
[optional] VARIANT compare);
[id(DISPID_GLOBAL_LOADPICTURE)]
VARIANT LoadPicture([optional] VARIANT stringexpression);
[id(DISPID_GLOBAL_SCRIPTENGINE)]
VARIANT ScriptEngine();
[id(DISPID_GLOBAL_SCRIPTENGINEMAJORVERSION)]
VARIANT ScriptEngineMajorVersion();
[id(DISPID_GLOBAL_SCRIPTENGINEMINORVERSION)]
VARIANT ScriptEngineMinorVersion();
[id(DISPID_GLOBAL_SCRIPTENGINEBUILDVERSION)]
VARIANT ScriptEngineBuildVersion();
[id(DISPID_GLOBAL_FORMATNUMBER)]
VARIANT FormatNumber(
VARIANT expression,
[optional] VARIANT NumDigitsAfterDecimal,
[optional] VARIANT IncludeLeadingDigit,
[optional] VARIANT UseParensForNegativeNumbers,
[optional] VARIANT GroupDigits);
[id(DISPID_GLOBAL_FORMATCURRENCY)]
VARIANT FormatCurrency(
VARIANT expression,
[optional] VARIANT NumDigitsAfterDecimal,
[optional] VARIANT IncludeLeadingDigit,
[optional] VARIANT UseParensForNegativeNumbers,
[optional] VARIANT GroupDigits);
[id(DISPID_GLOBAL_FORMATPERCENT)]
VARIANT FormatPercent(
VARIANT expression,
[optional] VARIANT NumDigitsAfterDecimal,
[optional] VARIANT IncludeLeadingDigit,
[optional] VARIANT UseParensForNegativeNumbers,
[optional] VARIANT GroupDigits);
[id(DISPID_GLOBAL_FORMATDATETIME)]
VARIANT FormatDateTime(
VARIANT Date,
[optional] VARIANT NamedFormat);
[id(DISPID_GLOBAL_WEEKDAYNAME)]
VARIANT WeekdayName(
VARIANT Weekday,
VARIANT abbreviate,
VARIANT firstdayofweek);
[id(DISPID_GLOBAL_MONTHNAME)]
VARIANT MonthName(
VARIANT Month,
[optional] VARIANT abbreviate);
[id(DISPID_GLOBAL_ROUND)]
VARIANT Round(
VARIANT expression,
[optional] VARIANT numdecimalplaces);
[id(DISPID_GLOBAL_ESCAPE)]
VARIANT Escape(VARIANT string);
[id(DISPID_GLOBAL_UNESCAPE)]
VARIANT Unescape(VARIANT string);
[id(DISPID_GLOBAL_EVAL)]
VARIANT Eval(VARIANT string);
[id(DISPID_GLOBAL_EXECUTE)]
VARIANT Execute(VARIANT string);
[id(DISPID_GLOBAL_EXECUTEGLOBAL)]
VARIANT ExecuteGlobal(VARIANT string);
[id(DISPID_GLOBAL_GETREF)]
VARIANT GetRef(VARIANT string);
}
[
uuid(3eef9758-35fc-11d1-8ce4-00c04fc2b187)
]
dispinterface ErrObj {
properties:
[id(DISPID_ERR_DESCRIPTION)]
VARIANT Description;
[id(DISPID_ERR_HELPCONTEXT)]
VARIANT HelpContext;
[id(DISPID_ERR_HELPFILE)]
VARIANT helpfile;
[id(DISPID_ERR_NUMBER)]
VARIANT number;
[id(DISPID_ERR_SOURCE)]
VARIANT Source;
methods:
[id(DISPID_ERR_CLEAR)]
VARIANT Clear();
[id(DISPID_ERR_RAISE)]
VARIANT Raise(
VARIANT number,
VARIANT Source,
VARIANT Description,
VARIANT helpfile,
VARIANT HelpContext);
}
}