Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vfp6 - getting Windows Title for an image. 1

Status
Not open for further replies.

wetton

Technical User
Jun 26, 2006
42
AU
In the right Click properties menu for an image - on the (Simple) Summary Tab I can enter several values including Title.

Can VFP access these values via an API?

I am already able to access the EXIF vales shown on the Advanced Button

Thanks

PW
 
Found on tek-tips earlier:

basically works like this:
Code:
Dimension arrHeaders(35)
objShell=CreateObject("Shell.Application")
objFolder=objShell.Namespace("c:\tmp")

* Array of possible file properties (35)
For i = 0 to 34
 arrHeaders(i+1) = objFolder.GetDetailsOf(objFolder.Items, i)
Next

* create object of an existing file
objFolderItem=objFolder.ParseName('Image3.jpg')

* print all 35 properties
For i = 0 to 34
     ? i ,arrHeaders(i+1), ": " , objFolder.GetDetailsOf(objFolderItem, i)
Next

Just give file a Title then look what position in will came up...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top