Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/jopp289/domains/progmans.net/public_html/engine/classes/mysqli.class.php on line 162 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jopp289/domains/progmans.net/public_html/engine/modules/show.short.php on line 160 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jopp289/domains/progmans.net/public_html/engine/modules/show.short.php on line 160 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jopp289/domains/progmans.net/public_html/engine/modules/show.short.php on line 160 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jopp289/domains/progmans.net/public_html/engine/modules/show.short.php on line 160 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jopp289/domains/progmans.net/public_html/engine/modules/show.short.php on line 160 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jopp289/domains/progmans.net/public_html/engine/modules/show.short.php on line 160 VB6, Visual Basic 6
Заголовок



TextMatrix - значение ячейки
fg - VSFlexGrid
Height - имя (наименование) поля


For i = fg.FixedRows To fg.Rows - 1
     If Trim(fg.TextMatrix(i, fg.ColIndex("Height"))) = "0" Then
         MsgBox "Значение не должно равняться 0"
         Exit Sub
     End If
Next i



ST1 - имя панели вкладок

If ST1.Tab = 3 Then .....Если активна вкладка 4

ST1.TabEnabled .....Проверка и установка доступности вкладки на панели закладок



chkBox.Value = 1 (отмечено)
chkBox.Value = 0 (не отмечено)



sql - запрос к базе данных
cn - соединение с базой данных (ADODB.connection)
rcd - рекордсет (ADODB.Recordset)


sql = ""
sql = "SELECT * FROM dbTableName"
rcd.Open sql, cn, adOpenStatic

rcd.MoveFirst
While Not rcd.EOF
    MsgBox rcd("TableFieldValue")
    rcd.MoveNext
Wend



rcd - рекордсет (ADODB.Recordset)


If rcd.State = adStateOpen Then
    rcd.Close
End If



назад 1 2 3 4 5 далее