Quantcast
Channel: ClearScript
Browsing all 2297 articles
Browse latest View live

New Post: Byte converted to Int

Hi ravetam, There are a couple of ways to do it. First, you can use HostFunctions.toByte(): engine.AddHostObject("host", new HostFunctions()); engine.Execute(@" var b = host.toByte(162); ");Another way...

View Article


New Post: A procedure imported by 'ClearScriptV8-64.dll' could not be loaded.

Thanks for your time. Do you think that if I use .NET 4.5 would create this problem? I downloaded the project and it's using 4.0.

View Article


New Post: A procedure imported by 'ClearScriptV8-64.dll' could not be loaded.

Hi scuty, We have no reason to believe that .NET 4.5 is the cause of this issue, but it's difficult to be sure without knowing the true cause. By the way, the ClearScript ReadMe contains our...

View Article

New Post: A procedure imported by 'ClearScriptV8-64.dll' could not be loaded.

Hi, Doing what the ReadMe said solved the problem. Thanks! Great project!

View Article

New Post: Cannot add v8-ia32.dll, v8-x64.dll as references in Visual Studio

Hi, there. I tried adding v8-ia32.dll, v8-x64.add as references in Visual Studio. However I got the error: "Please make sure that the file is accessible, and that is is a valid assembly or COM...

View Article


New Post: Cannot add v8-ia32.dll, v8-x64.dll as references in Visual Studio

Hi knhr, You should only add a project reference to the main ClearScript assembly, ClearScript.dll. If you wish to use ClearScript's V8 support, you must also copy the V8 assemblies...

View Article

New Post: Cannot add v8-ia32.dll, v8-x64.dll as references in Visual Studio

Thanks for your prompt reply. It works :D I didn't notice that V8 assemblies needs only copying to application's directory (,not adding to a project as references). I'm sorry for lacking concentration....

View Article

New Post: Cannot use Action/Function in PropertBag in JScript/V8

I have created a new class that inherits a PropertyBag (but tried it direct also) so that I can create some standard Actions or Functions automatically when the Bag is created. Code Below : public...

View Article


New Post: Cannot use Action/Function in PropertBag in JScript/V8

Hello egooner, JavaScript syntax requires a parenthesized argument list for invocation: debug.log(x.bagkeys())Otherwise you're just printing out the delegate's string representation. Good luck!

View Article


New Post: Cannot use Action/Function in PropertBag in JScript/V8

Ok - so I figured out that if I can from JS using x.bagkeys() instead of x.bagkeys it works! But am I overcomplicating matters and should x.bagkeys work without the () appended as it does with VBScript?

View Article

New Post: Cannot use Action/Function in PropertBag in JScript/V8

Thanks - figured that just before your post but thanks anyway ... am I missing something though? Why can I not access the PropertyBag's own Keys function is that intentional?...

View Article

New Post: Byte converted to Int

that works, thanks!

View Article

New Post: Cannot use Action/Function in PropertBag in JScript/V8

Hi egooner,​ Why can I not access the PropertyBag's own Keys function is that intentional?​ Yes, that's intentional. Property bags are special in that they expose their keys as if they were members....

View Article


New Post: Culture of Windows Script Engine

Please add ability to change the default cultureinfo that passed to the windows script engine. An application that use a script engine can have different culture from a default culture that internally...

View Article

New Post: Culture of Windows Script Engine

Hi ifle, Can you provide a sample script that would be affected by this setting? Thanks!

View Article


New Post: Culture of Windows Script Engine

Function Money_Type_2(money) If IsNumeric(money) Then Money_Type_2 = FormatCurrency(money, 2, -1, -1, -2) End If End Function In my modificated version of ClearScript I pass to the script engine the...

View Article

New Post: Culture of Windows Script Engine

I pass to the script engine the CultureInfo ​ You mean, via IActiveScriptSite::GetLCID()? Or is there another way?

View Article


New Post: Culture of Windows Script Engine

Yes, I mean via IActiveScriptSite::GetLCID. Are you able to reproduce this issue?

View Article

New Post: Culture of Windows Script Engine

Yes. The only issue is that the engine seems to query this value only when the site is attached - that is, in the WindowsScriptEngine constructor. Would it be sufficient to use the current culture (or...

View Article

New Post: Culture of Windows Script Engine

In my case the current culture is enough

View Article
Browsing all 2297 articles
Browse latest View live