Hi Lance,
>Try creating an empty form with one Image object and a "Display" button that you can use to assign an explicit path to a .BMP file (anything in the Windows directory) then run it from the command window and click the button and see what happens. I would guess you would see the same thing I am seeing.
The following works just fine for me. Does it for you?
Public ox
ox = CreateObject( "Form" )
ox.AddObject( "img", "Image" )
ox.img.Stretch = 1
ox.img.Visible = .T.
ox.img.Height = 100
ox.AddObject( "cmd", "CmdGet" )
ox.Show()
Define Class CmdGet as CommandButton
Left = 100
Visible = .T.
Procedure Click
CD (GetEnv("WinDir"))
Thisform.img.Picture = GetPict("Bmp")
Enddefine
Christof
--
Christof