Normal Topic a wait command? (Read 669 times)
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
a wait command?
Oct 29th, 2007 at 12:32am
Print Post Print Post  
I have some code the reference an outside program, which is a command app, but it errors, I know that it is because of what sesame is issuing to the dos app, but the window appears and closes to quickly i know in some programming launagues there is a step or a wait command to debug the app is there the same in sesame?


  
Back to top
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: a wait command?
Reply #1 - Oct 29th, 2007 at 2:38am
Print Post Print Post  
Maybe Page 140 or 289 is what your looking for "Loiter()" in the programming manual 2.3. Maybe you could put a Writeln() command in there to stop it at that point.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2492
Joined: Aug 20th, 2003
Re: a wait command?
Reply #2 - Oct 29th, 2007 at 1:24pm
Print Post Print Post  
There is a Loiter command for Sbasic but it is not Sbasic that you want to pause it is the Dos Command that you want to pause.

Two things you could do:

1. You can have your Sbasic code write out the command that you are trying to run to a Batch file and add a Pause to the batch file. Then @Shell() would call the batch file.

2. Use Writeln() to write out exactly what you are passing to @Shell(). Then copy and paste that into a Dos Prompt and hit enter. This will tell you what the problem is.

If the syntax is all correct for the dos app, My guess would be that there is a space in a file path and the file path is not in quotes.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
drastixnz
Full Member
***
Offline


A Newbie....

Posts: 146
Location: New Zealand
Joined: Nov 29th, 2006
Re: a wait command?
Reply #3 - Oct 30th, 2007 at 1:26am
Print Post Print Post  
thanks the Loiter() command allowed the window to open long enough for me to read, I placed it and the line after the shell statement.
  
Back to top
IP Logged