- Home /
Question by
Borrie · Jun 17, 2012 at 10:00 PM ·
c#javascriptstring
c# string script to javascirpt?
Ok kind of a n00b question; I am converting a c# script to a javascript but I can not figure out how the following c# script should be written in javascript (inside a function). (this is the piece of the script that goes wrong, the "string filepath" is properbly the problem.. what should it be if written in javascript?)
function WriteToXml()
{
string filepath = Application.dataPath + @"/XML/test.xml";
Comment
Best Answer
Answer by whydoidoit · Jun 17, 2012 at 10:01 PM
var filepath : String = Application.dataPath + "/XML/test.xml";
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Unable to use parameter in javascript. 1 Answer
Passing Java String to C# for use in Wwise Post Event = Fail 0 Answers
Distribute terrain in zones 3 Answers