ContributionsMost RecentMost LikesSolutionsRe: how to convert this vbscript into jscript? Yes its vba it seems - is there a jscript way of doing the same? Re: how to convert this vbscript into jscript? I've read that and it does not have an equivalent for .Find - looked everywhere how to convert this vbscript into jscript? Public Function ReadExcelDataSingle(sFileName,iRow,sFieldName,vSheet) //Option explicit Dim sData Dim iNoError Dim sCurrentProc Dim sWinDir Dim lResult Dim strMsgText Dim iColNum Dim sTestData Dim ColHead //Count Columns ColCount = objWorkSheet.UsedRange.columns.count set oSearchRegion = objWorkSheet.Range(objWorkSheet.cells(1,1),objWorkSheet.cells(1, ColCount )) notfound = "" with (oSearchRegion) set oSearchResult = .Find(sFieldName) If not oSearchResult is nothing then iColNum = oSearchResult.column FirstCol = iColNum FoundVal = objWorkSheet.Rows(1).Columns(iColNum).Value If sFieldName != FoundVal then do set oSearchResult = .Findnext(oSearchResult) iColNum = oSearchResult.column FoundVal = objWorkSheet.Rows(1).Columns(iColNum).Value loop while FirstCol != iColNum and sFieldName != FoundVal if sFieldName != FoundVal then notfound = "Y" end if else notfound = "Y" end if End With //Retrieve the value from the cell sData = "" if notfound = "" then sData =objWorkSheet.rows(iRow).Columns(iColNum).Value end if sData = Trim(sData) ReadExcelDataSingle = sData End Function If sData <> "" Then vbs script in jscript? How to code this in jscript? If sData <> "" Then If sData = "0" Then iColNum = runcolcount Else if IsNumeric(sData) Then Else Call zGen_PopupMsg("This is the Test Case being processed " + vbCrlf + sData, 3) Execute sData End if End If End If SolvedRe: I have a jscript project Suite - can I call a script from another Suite? if I have a project Suite written in vbs and I want to refer to a utility ther from a project Suite written in jscript can i do that? I have a jscript project Suite - can I call a script from another Suite? Suite 1(jscript) to call script 2 (vbscript) from Suite 2 Modifying a vbs script while in a jscript project I have lots of scripts in jscript and can run them. I also have some vbs scripts that I'd like to modify and I'd like to copy them into a unit and modifiy it using the IDe and then run it via testcomplete Re: Calling a VBscript with extension .vbs from Test Complete code how would I code the call in jscript? Change the application run folder There are times that I want to run the application run folder for a specific application in the TestedApps list depending on the version/directory where it is stored - can I do this programmatically? this all would come from a config file read in at the start.... Solvedrunning .vbs script from jscript testcomplete I want to run this .vbs script C:\pwc\PWC-QTP\runit.vbs Can anybody help me? I started here var strExe = "C:\pwc\PWC-QTP\runit.vbs -h1 -d33"; var objShell = new ActiveXObject("WScript.Shell"); var objScriptExec = objShell.Exec(strExe); var strExeOut = objScriptExec.StdOut.ReadAll();