key_press

new topic     » goto parent     » topic index » view thread      » older message » newer message

Brent wrote:

>hiya
>could some plz tell me how to open another document in my program
ie:"hello.ex"
>by using the command "system"
>i have been trying this but it dont work =

>atom keypress =


>keypress =3D wait_key()

>if keypress =3D '1' or keypress  =3D '3' then

>system("C:\\EUPHORIA\\hello.ex",0) system("",0) system("",0)

>or have i cocked this right up

>plz help someone

>thanx brent

If you want to execute the program hello.ex from within another program, =
do
this by:

system("C:\\euphoria\\ex hello.ex", 0)

The ex part is for starting up the interpreter again; in fact, a second
copy of the interpreter, if I'm not mistaken. I don't get what you want t=
o
achieve by system("", 0).
At it's best, this will do nothing, just like when you press Enter on an
empty command line.

Hope this helps,

Ad

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu