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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlinking to ArcView

Status
Not open for further replies.

Khoka

Programmer
Feb 25, 2001
1
US
How do I hyperlink to an ".apr" Arcview file on a commmand button? Path to arcview.exe then add parater with path to ".apr" file? Not sure, could use some help here.
 
I would use the ShellExecute API. This way the access program can be used on any computer with arcview installed without using the exact path to arcview.exe.


Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

private sub button_click()
Private Const SW_SHOWNORMAL = 1
ShellExecute Me.hwnd, vbNullString, "any_apr_file.apr", vbNullString, "C:\", SW_SHOWNORMAL
end sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top