Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Weird Parameter Passing Behavior

0
0
Hello again!

Here is what my getChunkJSON function looks like...
function getChunkJSON(num) {
    return JSON.stringify(Chunks[num]);
}
That code simply returns a string value. That is not my exact code, but that has the same result. If I try to change my VB code to something a little simpler like,
s1 = LUA.JSEngine.Script.getChunkJSON(chunkNum)

Where s1 is defined as a string, I get a "Conversion from type 'V8ScriptItem' to type 'String' is not valid." cast exception error.


As for the second question, that block of code looks like it will work great, thanks so much!

-JC

Viewing all articles
Browse latest Browse all 2297