Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2013.03.22;
Скачать: CL | DM;

Вниз

msscript control   Найти похожие ветки 

 
Palladin ©   (2012-03-16 14:46) [0]

var
 v: Variant;
...
 ifcScriptEngine.AddCode("function a(){return 5}");
 v := ifcScriptEngine.Eval("a");


что за объект вернет? расскажите дураку где почитать? это точно не IScriptProc


 
Димка На   (2012-03-16 15:18) [1]

По-моему только IDispatch. В самой typeLibrary jscript.dll нет интерфейсов, только

 FunctionInstance = dispinterface
   ["{3EEF9758-35FC-11D1-8CE4-00C04FC2B093}"]
   property length: OleVariant dispid 700;
   function toString: StringInstance; dispid 701;
   function toLocaleString: StringInstance; dispid 702;
   function valueOf: FunctionInstance; dispid 703;
   function apply(thisValue: OleVariant; argArray: OleVariant): OleVariant; dispid 704;
   function call(thisValue: OleVariant): OleVariant; dispid 705;
   function hasOwnProperty(propertyName: OleVariant): OleVariant; dispid 706;
   function propertyIsEnumerable(propertyName: OleVariant): OleVariant; dispid 707;
   function isPrototypeOf(obj: OleVariant): OleVariant; dispid 708;
 end;


 
Palladin ©   (2012-03-16 15:22) [2]

угу, меня это и интерсовало... недавно только доперло что Function вернет... спасибо



Страницы: 1 вся ветка

Текущий архив: 2013.03.22;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.068 c
4-1258539915
ТЧеловек
2009-11-18 13:25
2013.03.22
callback для регулировки громкости


11-1182871715
Robt
2007-06-26 19:28
2013.03.22
снова TrackBar


3-1250742438
pushkin42
2009-08-20 08:27
2013.03.22
dbExpress не открывает личико...


15-1337416388
alexdn
2012-05-19 12:33
2013.03.22
Музыка


15-1337027405
Юрий
2012-05-15 00:30
2013.03.22
С днем рождения ! 15 мая 2012 вторник