PDA

View Full Version : AppPath$ global


Richard
11-01-2006, 08:01 PM
Very minor this one.

When an image is put on a form, the WinMain procedure does not declare AppPath$ as a Global, but uses it to load the picture. Thus:

SendMessage(CalcPic1$, STM_SETIMAGE, IMAGE_BITMAP, Image_Load(AppPath$+{calculate1.bmp}));

This results as a warning for each image during the compile.

As I said, not really a problem, but having been a good boy and defined all my variables I'm left with just these. :((

kornalius
11-01-2006, 08:44 PM
I suggest you add it to your form's initialization section like this:

Global(AppPath$);

I will add it to the form generator for 1.07.