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 VSFlexGrid » Шпаргалки
Заголовок



rcd - рекордсет (ADODB.Recordset)
fg - VSFlexGrid
cn - соединение с базой данных (ADODB.Connection)



fg.Editable = flexEDKbdMouse
fg.DataMode = flexDMBoundBatch
rcd.Open "SELECT * FROM r_Prods", cn, adOpenDynamic, adLockPessimistic

...... (Внести изменения в таблицу)

rcd.UpdateBatch        ......(Записать изменения)

rcd.CancelBatch        ......(Отменить изменения)



fg - VSFlexGrid
3 - порядковый номер поля (колонки)

fg.ColKey(3) = "BarCode"



fg - VSFlexGrid

If fg.SelectedRows > 0 Then
     For i = 0 To fg.SelectedRows - 1
         fg.RemoveItem fg.SelectedRow(0)
     Next
End If



fg - VSFlexGrid
fg.Row - текущая строка грида


MsgBox fg.TextMatrix(fg.Row, fg.ColIndex("ColName"))






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