Re: IDE - declarations and so on?

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

----- Original Message -----
From: <david at aldred.demon.co.uk>
Subject: IDE - declarations and so on?
> Please excuse what may be a silly question from a newcomer to
> Euphoria...
>
> How do I declare global variables in a program being developed using
> IDE.EXW v 0.10.2?
>
> The situation is this: I want to use a variable to hold the results of a
> directory listing: this is called on entry to the program (in what is
> currently called Window1_onOpen() ), and will be needed by various other
> procedures within the program.  Euphoria objects if I try to declare it
> as global within the procedure, and I can't find anywhere else within
> the IDE to declare it.  If I edit the .exw file to include a global
> declaration, the edit is lost any time I use the IDE to create any other
> procedure.
>
> It's probably obvious, really, but I'm stumped at the moment!
> --

While working on your main window, right click anywhere, select Code Editor,
and then pull down the right-hand box (usually says onClick, or something.
At the top of the list, you'll find (General)
Select that, and anything you type will be put at the top of the file.
global sequence mydir = (whatever)

Regards,
Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu