powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Опять VSFlex Grid 8.0
3 сообщений из 3, страница 1 из 1
Опять VSFlex Grid 8.0
    #33215550
Valeriu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Господа, здравствуйте !!!

Вопрос :
Как удалить выбранную область грида выделенную маусом
через код (програмно) ???

Спасибо.
...
Рейтинг: 0 / 0
Опять VSFlex Grid 8.0
    #33215946
Valeriu
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Решил, но знаю что нестандартно !!!

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
Private Sub VSGed_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
txtP.Text = VSGed.RowSel
End Sub

Private Sub VSGed_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
txtS.Text = VSGed.RowSel
End Sub


Private Sub cmdKill_Click()
Dim sMsg As String
Dim nButtons As Integer
Dim nResult As Integer
Dim n As Integer
sMsg = "Really want to remove the Chosen lines ???"
nButtons = vbYesNo + vbQuestion
nResult = MsgBox(sMsg, nButtons, "Atention !!! ")
If nResult = vbNo Then Exit Sub
If nResult = vbYes Then
    End If
    
For n = Val(txtP.Text) To Val(txtS.Text)
Mstring = "k " & Piece(VSGed.Cell(flexcpText, n,  0 ), "=",  1 )
m.Xecute Mstring
VSGed.Cell(flexcpText, n,  0 , ,  1 ) = ""
Next n

End Sub
...
Рейтинг: 0 / 0
Опять VSFlex Grid 8.0
    #33216233
Processor
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Valeriu Как удалить выбранную область грида выделенную маусом Clear Method
Clears the contents of the control. Optional parameters specify what to clear and where.
Syntax
[form!]VSFlexGrid.Clear [ Where As Variant ], [ What As Variant ]
Remarks
The parameters for the Clear method are described below:
Where As ClearWhereSettings (optional)
Defines what part of the grid will be cleared. Valid settings for this parameter are:
flexClearSelection 2 Clear current selection.
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Опять VSFlex Grid 8.0
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]