Opening an image....

hi,
Im making a tic-tac-toe game and I need some hlp with opening
the images. Is there a way to say:
Image1.picture = LoadPicture projectlocation & "X.bmp"

where projectlocation is where i have the project saved?

Comments

  • : hi,
    : Im making a tic-tac-toe game and I need some hlp with opening
    : the images. Is there a way to say:
    : Image1.picture = LoadPicture projectlocation & "X.bmp"
    :
    : where projectlocation is where i have the project saved?
    :

    Take a look at the App object. It has several properties you'll find to be useful in your programming:

    App.Path - Returns the path to your project file or exe. Terminated with "" only if it's in the root.

    App.Path & IIF(Right$(App.Path, 1) = "", "", "") & "X.bmp"
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion