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

New Post: Handling CLR exceptions in JS

Thomas, Your positive feedback is greatly appreciated! By the way, we're adding a more general version of the tryCatch method above to the ClearScript API. Thanks for your input, and please let us know...

View Article



New Post: Calling VBScript function by dispatchId

No, debugger attached before error-generating script.

View Article

New Post: Accessing SqlDataReader from ClearScript

Greetings! Unfortunately it looks like SqlDataReader currently cannot be used directly from script code. The root cause is this .NET bug. We'll provide a workaround in the next ClearScript release. In...

View Article

New Post: Accessing SqlDataReader from ClearScript

Hey, Well I had to take the longer route of using a SqlDataAdapter and DataSet and it worked but would have loved to use SqlDataReader... Hope your team can fix this soon for us... Thanks for the...

View Article

New Post: method 'is inaccessible due to its protection level'

Hi, In the following short test when the script tries to access the method I get a ScriptEngineException:"'ClearScriptAccessTest.TestClass.TestMethod()' is inaccessible due to its protection level"...

View Article


New Post: method 'is inaccessible due to its protection level'

Hi Ron,​ Is there a reason why the property is accessible and the method is not? ​ Yes, it has to do with the way ClearScript binds to .NET type members. For most things it uses reflection, but for...

View Article

New Post: object does not contains method or property

hi, i have this js code:function WebClient() { DownloadString: function (path, callback){ var wc = new System.Net.WebClient(); var result = wc.DownloadString(path); if (typeof(callback) != "undefined")...

View Article

New Post: object does not contains method or property

Hi furesoft, You probably intended to define your function like this:function WebClient() { this.DownloadString = function (path, callback) { var wc = new System.Net.WebClient(); var result =...

View Article


New Post: method 'is inaccessible due to its protection level'

Thanks for an immediate perfect answer, as always! Ron

View Article


New Post: Some things don't work in JScript Engine

Hi, I don't know if I am doing something wrong or its a bug but just thought I will post if for your information. Following works in VBScript engine but not in JScript engine.Imports System.Xml Imports...

View Article

New Post: for each item in collection loop does not work for datatable

Hi. The code:Imports System.Data.SqlClient Imports Microsoft.ClearScript Public Class WebForm1 Inherits System.Web.UI.Page Public vbs As Windows.VBScriptEngine = New Windows.VBScriptEngine Public conn...

View Article

New Post: Some things don't work in JScript Engine

Hello shripaldalal, Could you try renaming "this"? It's a reserved word in JavaScript. Thanks!

View Article

New Post: Some things don't work in JScript Engine

Worked. Sorry for disturbing you over something so trivial! Thanks for your help!

View Article


New Post: Calling VBScript function by dispatchId

The fact that the debugger attaches successfully and displays your script documents indicates that you have things mostly working. However, because you're using a modified version of ClearScript, we...

View Article

New Post: Calling VBScript function by dispatchId

I understand. Thanks . Is there any reason always to create a debug document in WindowsScriptEngine::Parse function? It should not be dependent to EnableDebugging flag?

View Article


New Post: for each item in collection loop does not work for datatable

Hi shripaldalal, VBScript's for each statement only works with native VBScript arrays and specially crafted COM objects. ClearScript exposes .NET objects by encasing them in COM-aware wrappers, but it...

View Article

New Post: for each item in collection loop does not work for datatable

Hi, Can this be done in JScript or V8 ??? Also I declared a DataRow object and DataColumn object and called it through VBScript still I get an error. Please advise.

View Article


New Post: for each item in collection loop does not work for datatable

I believe Microsoft should make a real scripting solution without COM Interop and Reflection or CodeDom it would be a sell out.

View Article

New Post: Calling VBScript function by dispatchId

It isn't required, but having the host manage these documents gives it a bit more control over how they're presented in the debugger.

View Article

New Post: for each item in collection loop does not work for datatable

Hi shripaldalal,​ Ok I tried it in JScript and it does not work there too. ​ Sorry, what doesn't work? You said above that you could iterate through the data by using the Count and Item properties. The...

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images