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

New Post: Decimal values problems

Using of CurrencyWrapper resolve this issue.

View Article



New Post: Decimal values problems

Hi Igor,​ Can you give me example? ​ Sure. One thing you could do is use a host method to operate on decimal values: scripter.Script.add = new Func<decimal, decimal, decimal>((a, b) => a + b);...

View Article

New Post: Problem with nullable property of object

Hi Igor, You have to use the IsNull function in this case:function Test if IsNull(Class1.Class2) then Test = true else Test = false end if end function Thanks!

View Article

New Post: Decimal values problems

It's not solution for our legacy application, we can't fix all customer scripts. Anyway thanks a lot.

View Article

New Post: Problem with nullable property of object

That break compatibility with legacy application. We can't change client scripts.

View Article


New Post: Decimal values problems

What VBScript data type do the scripts use for which you're trying to provide decimal values? Is it currency?

View Article

New Post: Problem with nullable property of object

Understood. Unfortunately there seems to be no way to marshal nothing into the script engine. That is, there's no value we can return from the host that VBScript will interpret as nothing. We can...

View Article

New Post: Problem with nullable property of object

Try use DispatchWrapper.

View Article


New Post: Decimal values problems

Yes, it's a currency

View Article


New Post: Problem with nullable property of object

You're absolutely right! A value of new DispatchWrapper(null) is picked up as nothing on the VBScript side. Thank you! We'll be happy to add null<-> nothing marshalling to ClearScript, but it'll...

View Article

New Post: Decimal values problems

We'll add decimal<-> currency marshalling to ClearScript. Thanks!

View Article

New Post: Problem with nullable property of object

Thanks. Is there nightly builds of the ClearScript?

View Article

Source code checked in, #7df5fa298b6449386dc0beace2f87f789118b476

Added null and decimal marshaling options to WindowsScriptEngine.

View Article


New Post: Problem with nullable property of object

Hi Igor,​ Is there nightly builds of the ClearScript? ​ No, but we just posted a source code update that includes the new marshaling options. If you get a chance, please give them a try and let us know...

View Article

New Post: Problem with nullable property of object

Hi, It's work. Thanks a lot. If you have some progress with cloning of script engine, please update the source code. I use with source code of script engine and have modified version of the ClearScript.

View Article


New Post: Parent-child script relation

Small question about setting global variables. Suppose I have following script that has account variable. dim account function GetAccountName() GetAccountName = account.Name; end function What is...

View Article

New Post: Getting JS exception

Hello!​ Is there any plan to have more seamless exception handling between .NET and JS, even for V8 only? ​ Currently there's no plan beyond adding a script-callable tryCatch() function on the host...

View Article


New Post: Parent-child script relation

Greetings!​ What is "true" way set this variable by reference? ​ Sorry, please clarify. Are you asking how to set the account variable from the host?

View Article

New Post: Parent-child script relation

Yes, that should be similar to set account = hostObject but notaccount = hostObject

View Article

New Post: Problem dealing with arrays in VBScript

Hi, I have following simple code. It works fine with MSScriptControl, but using VBScriptEngine it doesen't work: private void btnExecuteScript_Click(object sender, EventArgs e) { try { using...

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images