ContributionsMost RecentMost LikesSolutionsRe: Code Completion does not display all available variables within the brackets. Oh, got it. Thanks. Re: Code Completion does not display all available variables within the brackets. The reason I asked is because in C# any varibale initiated within the for loop will only exists within the for loop. Also, what do you mean with be careful about lowerUpper? I don't see that anywhere in the project properties as an option. Re: Code Completion does not display all available variables within the brackets. The new varaible created within the scope of the for loop won't show up on completion code as an available local variable. Only the variable that was created at the beginning the fuction will show up on code completion as an availabe variable. *By code completion I mean the pop up box you get when pressed "CTLR+Space Bar" that shows all the objects & variables available within the scope of the function you are currently in* Code Completion does not display all available variables within the brackets. Hello, I am wondering if I am doing something wrong in where code completion won't show all available variables in the within the scope of the brackets. For example: function LogMsg() { var aStrg = "hello world"; // this local variable always shows up on code completion for(var i = 0; i < 3; i++) { Log.Message(aStrg ); var newStrg = "Goodbye"; Log.Message(newStrg) ; // the newStrg variable won't show up on code completion as a option } } The only way I can get the variable 'newStrg' to show up on code completion is to move it to the beginning of the function. Is this how Test Complete expects you to define variables every time? Calling two functions at the same time using TC9Hello, Quick questions. How do I go, if possible, about calling two functions that won't conflict with each other at the same time? Also, if possible, could I schedule a task to run at 12pm and then run again after 8 hours? (I know I can do a delay for that long, but figure there has to be something better than that) Thanks for your help in advance!TC9 Deleting Text FilesI know this is fairly easy and just switch to TC9 from TC7. I have a batch file that its purpose is to create a text file & write something like "PASS". Now my code gets this file and the first thing it does is deletes the file using the "aqFileSystem["DeleteFile"](AFileName)" no problem. Now my batch file is only executable if it senses a LED ON (using a camera as a sensor) and I then use this function to read what is inside the text file: function ReturnFileLine(Location){ var TextFile,Content; ReturnFileLine(Location){ TextFile,Content; TextFile = aqFile["OpenTextFile"](Location, aqFile["faRead"], aqFile["ctANSI"]); TextFile.Cursor = 0; while(! TextFile["IsEndOfFile"]()){ Content=TextFile["ReadLine"](); Log["Message"](Content);} while(TextFile["Exists"]) TextFile["Close"](); return Content; } At the end of the script I would like to delete this text file and start the function all over again (the script is inside a for loop), but I get this message that does not allow me to delete this file: "The process cannot access the file because it is being used by another process. Path: C:\AFileName.txt" I have tried renaming the file and moving it, but still get the same message as above. Is there a way that I can stop this process so I can delete this file or other ways that I can go around this issue, such as a force delete of some kind. Also, this may seem like a stupid question,but how do I find out what the process is that it is talking about? Thanks! PS: sorry for the bad englishFunction Help w/ DLL Script I recently just switch to TC 8.7 from 7.52. I have all my projects written in 7.52 and surely all I had to do was convert the files (which should work properly) except I can't figure out why 8.7 is giving me this error. I tried a couple of things, but can't seem to figure it out. Any help would be appreciated. I get this "An exception occurred: 0xC0000005; class: ; description: ''. Here is the function: function WriteToDevice(GPIBAdd, Command) { var CMD = DLL["New"]("LPSTR", 100); var DLLLocation = "C:\\Users\\edarriaga\\Crown\\Testing\\TestComplete\\LVLib\\DLLS\\VISA\\VISA.dll"; CMD.Text = Command; //Define DLL DLLFile = DLL["DefineDLL"]("VISA"); //Declare the DLL's function's Type and paramaters DLLFile["DefineProc"]("VisaWriteOnly", vt_lpstr, vt_lpstr, vt_void); //Load The DLL Into Memory Lib = DLL["Load"](DLLLocation); Delay(100); //Call Happens here Lib["VisaWriteOnly"](GPIBAdd, CMD); //eror happens here } Thanks in advance! function help error "An exception occurred: 0xC0000005"Hey i just recently switched to TC 8.7 from Test 7.52 the scripts run great in 7, but this function is giving me some problem and don't know what could be wrong with it. Here is the function that sends a comman via GPIB function WriteToDevice(GPIBAdd, Command) { var CMD = DLL["New"]("LPSTR", 100); WriteToDevice(GPIBAdd, Command){ CMD = ["New"]("LPSTR", 100); CMD.Text = Command; //Define DLL DLLFile = DLL["DefineDLL"]("VISA"); //Declare the DLL's function's Type and paramaters DLLFile["DefineProc"]("VisaWriteOnly", vt_lpstr, vt_lpstr, vt_void); //Load The DLL Into Memory Lib = DLL["Load"](DLLLocation); Delay(100); //Call Happens here Lib["VisaWriteOnly"](GPIBAdd, CMD); } It crahes at the end giving me the "An exception occurred: 0xC0000005; class: ; description: '' error I can't seem to figure out what could be wrong with it. It stops at the "Lib["VisaWriteOnly"](GPIBAdd, CMD);" It ran fine in TC 7.52, but after I converted the project file to TC 8.7 it doesn't run. Any clues what I am missing? Re: .Net 4 and TestComplete 7.52Hey guys, I just received the patch for 7.52, but the Enterprise version. I have the standard full version. Are they the same patch for both?? -Ed After I Open a Program It closes right away with Test Complete RunningHey guys, I am a power user, but this has me thinking. When I double click on the program to open while TestComplete is running in the background (so I could start writing my script) it opens the program and closes it right away ( it doesn't show up on Task Manager). I don't know what the issue could be here. Do I have to allow the program to run through TC? Let me know if you have any answers. I am using a very old version of TC Version 7. I have never had this happen before so I am kinda clueless on what do to. Thanks, Ed