Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display filenames with double click opening the file
Message
From
19/09/2005 05:53:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Display filenames with double click opening the file
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01050800
Message ID:
01050800
Views:
67
Hi
i need to display filenames on a screen with the capability of double clicking on the filename which in turn should open the file like outlooks attachment control

can that be done in VFP?
PS:
I use the browser control, it shows the filename but clickin on it won't open it.
This is my html in the browser document:
TEXT TO THISFORM.lcHTML NOSHOW TEXTMERGE
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<p><a href="file://<<thisform.business.data.cAttach>>">
<<thisform.business.data.cAttach>></a></p>

</body>

</html>
ENDTEXT
XINDEX=ADDBS(SYS(5)+SYS(2003))+"HTML\FILENOTES\INDEX.HTM"

WITH thisform.pgf1.page2.oWB
	.Navigate(XINDEX)
	lnStartSeconds = SECONDS()
	DO WHILE .ReadyState <> 4 ;
			AND (SECONDS()-lnStartSeconds <= 1 )
		DOEVENTS
	ENDDO
	.DOCUMENT.OPEN()
	.DOCUMENT.WRITE(thisform.lchtml)
	.DOCUMENT.CLOSE()
	.visible=.t.
ENDWITH
Thanks

Peter
Peter Cortiel
Next
Reply
Map
View

Click here to load this message in the networking platform