<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2125092</guid>
        <pubDate>Tue, 25 Nov 2008 05:06:49 +0000</pubDate>
        <title>Помогите перевести с VBA на C#</title>
        <link>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2125092</link>
        <description><![CDATA[mikefreelance: Готов взяться за проект<br>
номер ICQ: 48ноль9644пять6 <br>
отзывы тут <br>
http://forum.sources.ru/index.php/topic,14760.0.html<br>
<a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=256557' target='_blank'>Благодарность для  Mikefreelance</a>]]></description>
        <author>mikefreelance</author>
        <category>ПОМОЩЬ СТУДЕНТАМ</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124817</guid>
        <pubDate>Mon, 24 Nov 2008 18:36:07 +0000</pubDate>
        <title>Помогите перевести с VBA на C#</title>
        <link>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124817</link>
        <description><![CDATA[&lt;julia&gt;: изначально в Аксесе 2000 была создана база с формами и процедурами, которые выполняются по нажатию на кнопки. Мне надо сделать аналогичную программу на C#, к которой подсоединена аксесовская база(тоже Аксесс 2000),в которой только таблицы и запросы, а все процедуры соответственно написать на С#.<br>А запросы &quot;qry001&quot;-&quot;qry005&quot; это запросы на исполнение(добавление&#092;удаление даввных в таблицы&#092;из таблиц).]]></description>
        <author>&lt;julia&gt;</author>
        <category>ПОМОЩЬ СТУДЕНТАМ</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124634</guid>
        <pubDate>Mon, 24 Nov 2008 15:14:03 +0000</pubDate>
        <title>Помогите перевести с VBA на C#</title>
        <link>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124634</link>
        <description><![CDATA[maxim84_: под какой оффис все это должно быть?? или это самостоятельная программа должна быть?<br>и не хватет инфы. что это за запросы:<br>&quot;qry_001&quot;<br>&quot;qry_002&quot;<br>&quot;qry_003&quot;<br>&quot;qry_004&quot;<br>&quot;qry_005&quot;<br>?]]></description>
        <author>maxim84_</author>
        <category>ПОМОЩЬ СТУДЕНТАМ</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124569</guid>
        <pubDate>Mon, 24 Nov 2008 14:14:33 +0000</pubDate>
        <title>Помогите перевести с VBA на C#</title>
        <link>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124569</link>
        <description><![CDATA[&lt;julia&gt;: Вот первая из них:<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Function Импорт1() As Integer</div><div class="code_line">On Error GoTo Импорт1_Err</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Dim i, j As Integer</div><div class="code_line">&nbsp;&nbsp; &nbsp;Dim qdf As QueryDef, rst As Recordset, dbs As Database, so As String, s As String</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Set dbs = CurrentDb</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;so = &quot;select * from table_1&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Set qdf = dbs.CreateQueryDef(&quot;&quot;, so)</div><div class="code_line">&nbsp;&nbsp; &nbsp;qdf.ODBCTimeout = 180</div><div class="code_line">&nbsp;&nbsp; &nbsp;qdf.Parameters(0) = [Forms]![Импорт]![ПолеДатаНачало]</div><div class="code_line">&nbsp;&nbsp; &nbsp;qdf.Parameters(1) = [Forms]![Импорт]![ПолеДатаКонец]</div><div class="code_line">&nbsp;&nbsp; &nbsp;Set rst = qdf.OpenRecordset(dbOpenDynaset, dbReadOnly)</div><div class="code_line">&nbsp;&nbsp; &nbsp;If Not rst.EOF Then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;rst.MoveLast</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;j = rst.RecordCount</div><div class="code_line">&nbsp;&nbsp; &nbsp;Else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;j = 0</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;i = MsgBox(&quot;нет данных для импорта&quot;, vbOK, &quot;Сообщение&quot;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;GoTo Импорт1_Exit</div><div class="code_line">&nbsp;&nbsp; &nbsp;End If</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;s = &quot;импортировать &quot; &amp; Trim(Str(j)) &amp; &quot; записей&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp;i = MsgBox(s, vbOKCancel + vbQuestion, &quot;Сообщение&quot;)</div><div class="code_line">&nbsp;&nbsp; &nbsp;If i &#60;&#62; vbOK Then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;GoTo Импорт1_Exit</div><div class="code_line">&nbsp;&nbsp; &nbsp;End If</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;DoCmd.SetWarnings False</div><div class="code_line">&nbsp;&nbsp; &nbsp;DoCmd.OpenQuery &quot;qry_001&quot;, acNormal, acEdit</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;DoCmd.SetWarnings True</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;i = MsgBox(&quot;Выполнено”, vbInformation, &quot;Сообщение&quot;)</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">Импорт1_Exit:</div><div class="code_line">&nbsp;&nbsp; &nbsp;Exit Function</div><div class="code_line">&nbsp;</div><div class="code_line">Импорт1_Err:</div><div class="code_line">&nbsp;&nbsp; &nbsp;MsgBox Error$</div><div class="code_line">&nbsp;&nbsp; &nbsp;Resume Импорт1_Exit</div><div class="code_line">&nbsp;</div><div class="code_line">End Function</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
<br>
Вот вторая: <br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Function Импорт3 () As Integer</div><div class="code_line">On Error GoTo Импорт3_Err</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Dim qdf As QueryDef, rst As Recordset, dbs As Database, so As String, s As String</div><div class="code_line">&nbsp;&nbsp; &nbsp;Dim ff As Integer, i, j As Integer</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Set dbs = CurrentDb</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;s = &quot;select chk_flag from tbl001 where N=1&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Set rst = dbs.OpenRecordset(&quot;tbl001&quot;, dbOpenSnapshot)</div><div class="code_line">&nbsp;&nbsp; &nbsp;rst.MoveFirst</div><div class="code_line">&nbsp;&nbsp; &nbsp;ff = rst.Fields(&quot;chk_flag&quot;).Value</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;If ff = 0 Then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;i = MsgBox(&quot;Проверка не выполнена!&quot;, vbInformation, &quot;Сообщение&quot;)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;GoTo Импорт3_Exit</div><div class="code_line">&nbsp;&nbsp; &nbsp;Else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;s = &quot; update tbl001 set chk_flag = 0 where N=1&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;dbs.Execute s, dbFailOnError</div><div class="code_line">&nbsp;&nbsp; &nbsp;End If</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;DoCmd.OpenQuery &quot;qry_002&quot;, acNormal, acEdit</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;so = &quot;select * from qry_vw&quot;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Set qdf = dbs.CreateQueryDef(&quot;&quot;, so)</div><div class="code_line">&nbsp;&nbsp; &nbsp;qdf.ODBCTimeout = 180</div><div class="code_line">&nbsp;&nbsp; &nbsp;Set rst = qdf.OpenRecordset(dbOpenSnapshot)</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;If Not rst.EOF Then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;rst.MoveLast</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;j = rst.RecordCount</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Beep</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;i = MsgBox(&quot;Обнаружены ошибки!&quot;, vbInformation, &quot;Сообщение&quot;)</div><div class="code_line">&nbsp;&nbsp; &nbsp;Else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;j = 0</div><div class="code_line">&nbsp;&nbsp; &nbsp;End If</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Debug.Print s, qdf.RecordsAffected</div><div class="code_line">&nbsp;&nbsp; &nbsp;Set qdf = Nothing</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;If j = 0 Then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoCmd.SetWarnings False</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoCmd.OpenQuery &quot;qry_04&quot;, acNormal, acEdit</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoCmd.OpenQuery &quot;qry_05&quot;, acNormal, acEdit</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;DoCmd.SetWarnings True</div><div class="code_line">&nbsp;&nbsp; &nbsp;Else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;GoTo Импорт3_Exit</div><div class="code_line">&nbsp;&nbsp; &nbsp;End If</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;i = MsgBox(&quot;Выполнено&quot;, vbInformation, &quot;Сообщение&quot;)</div><div class="code_line">&nbsp;</div><div class="code_line">Импорт3_Exit:</div><div class="code_line">&nbsp;&nbsp; &nbsp;Exit Function</div><div class="code_line">&nbsp;</div><div class="code_line">Импорт3_Err:</div><div class="code_line">&nbsp;&nbsp; &nbsp;MsgBox Error$</div><div class="code_line">&nbsp;&nbsp; &nbsp;Resume Импорт3_Exit</div><div class="code_line">&nbsp;</div><div class="code_line">End Function</div></ol></div></div></div></div><br>
<br>
А третья аналогичная этим 2м, если поможете с этими, то надеюсь с третьей разберусь сама)]]></description>
        <author>&lt;julia&gt;</author>
        <category>ПОМОЩЬ СТУДЕНТАМ</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124550</guid>
        <pubDate>Mon, 24 Nov 2008 14:03:21 +0000</pubDate>
        <title>Помогите перевести с VBA на C#</title>
        <link>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124550</link>
        <description><![CDATA[maxim84_: а где они?? :lol:]]></description>
        <author>maxim84_</author>
        <category>ПОМОЩЬ СТУДЕНТАМ</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124546</guid>
        <pubDate>Mon, 24 Nov 2008 14:02:16 +0000</pubDate>
        <title>Помогите перевести с VBA на C#</title>
        <link>https://forum.sources.ru/index.php?showtopic=257340&amp;view=findpost&amp;p=2124546</link>
        <description><![CDATA[&lt;julia&gt;: Нужно перевести с VBA на C# (в VS 2005) 3 процедуры, помогите пожалуста&#33;<br><br>Заранее благодарю&#33;]]></description>
        <author>&lt;julia&gt;</author>
        <category>ПОМОЩЬ СТУДЕНТАМ</category>
      </item>
	
      </channel>
      </rss>
	