<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум компьютерной помощи &mdash; Проверка на уникальность поля в базе]]></title>
		<link>https://itpmr.ru/viewtopic.php?id=783</link>
		<atom:link href="https://itpmr.ru/extern.php?action=feed&amp;tid=783&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Проверка на уникальность поля в базе».]]></description>
		<lastBuildDate>Wed, 22 May 2013 08:31:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Проверка на уникальность поля в базе]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123877#p123877</link>
			<description><![CDATA[<p>Sub Querysave(Source As Notesuidocument, Continue As Variant)<br />&nbsp; &nbsp; Dim session As New NotesSession<br />&nbsp; &nbsp; Dim workspace As New NotesUIWorkspace<br />&nbsp; &nbsp; Dim uidoc As NotesUIDocument<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; Set db = session.CurrentDatabase<br />&nbsp; &nbsp; Set uidoc = workspace.CurrentDocument<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; Set view = db.GetView(&quot;(townstreet)&quot;)<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; quote = &quot;FIELD Bmesto CONTAINS &quot; &amp; Source.FieldGetText(&quot;Bmesto&quot;) &amp;&quot; AND&nbsp; FIELD Bstreet CONTAINS &quot; &amp; Source.FieldGetText(&quot;Bstreet&quot;)<br />&nbsp; &nbsp; j = view.FTSearch(quote, 0 )<br />&nbsp; &nbsp; If j &gt;0 Then Messagebox &quot;Такая улица уже есть &quot;, MB_OK, &quot;Внимание&quot;: Continue = False<br />End Sub</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Wed, 22 May 2013 08:31:33 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123877#p123877</guid>
		</item>
	</channel>
</rss>
