<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Кнопка-ссылка]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=7383</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=7383&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Кнопка-ссылка.]]></description>
		<lastBuildDate>Mon, 22 Feb 2021 08:42:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Кнопка-ссылка]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=40215#p40215</link>
			<description><![CDATA[<p>Assuming the file link is not in a database and you just want to click on a button to open a file or folder, try</p><br /><div class="codebox"><pre><code>var
  fName :string;
 dir : TOpenDialog;

begin

    dir := TOpenDialog.Create(nil); {Creates and instance of TOpenDialog using dir as the variable}

    try
        
        fName := dir.files;   {Get the file name that is selected in the Open Dialog form}
        
        OpenFile(fName);  {This will open the file with whatever the default program is for the file}
     finally
      dir.Free;    {Free all the resources.
      
end;</code></pre></div><p>There are many other options that can be used with both TOpenDialog and OpenFile. For example you can set a default folder to search, or a filter to only search for certain file types.&nbsp; You can also if needed allow multiple selecting of files, but as the code above stands, the OpenFile function wouldn&#039;t work then.</p><br /><p>Предполагая, что ссылка на файл отсутствует в базе данных, и вы просто хотите нажать кнопку, чтобы открыть файл или папку, попробуйте.</p><br /><p>Есть много других опций, которые можно использовать как с TOpenDialog, так и с OpenFile. Например, вы можете установить папку по умолчанию для поиска или фильтр для поиска только определенных типов файлов. Вы также можете, если необходимо, разрешить множественный выбор файлов, но, как показывает приведенный выше код, функция OpenFile тогда не будет работать.</p>]]></description>
			<author><![CDATA[null@example.com (CDB)]]></author>
			<pubDate>Mon, 22 Feb 2021 08:42:42 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=40215#p40215</guid>
		</item>
		<item>
			<title><![CDATA[Кнопка-ссылка]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=40212#p40212</link>
			<description><![CDATA[<p>Подскажите как сделать кнопку-гиперссылку, чтобы по нажатию открывалась папка/файл на локальном сервере?</p>]]></description>
			<author><![CDATA[null@example.com (Alexandr)]]></author>
			<pubDate>Sun, 21 Feb 2021 19:21:31 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=40212#p40212</guid>
		</item>
	</channel>
</rss>
