[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ListView MoveAfter Malfunction
[Thread Prev] | [Thread Next]
- Subject: Re: ListView MoveAfter Malfunction
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Tue, 26 Aug 2025 16:53:45 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
oops no sorry , i see what it's doing.
to move do
i do it like this...
For i As Integer = aSelection.Max DownTo 0
sName = aSelection[i]
If sName = sKey Then Break
ListView1.MoveTo(sName)
If ListView1.MoveBelow() Then Return
ListView1[sName].MoveAfter(ListView1.Item.Key)
Next
if you move the line to the line after the same line it's still the same
line i suppose. so you have to move past the one below that
Respects
BruceS
On Tue, 26 Aug 2025 at 16:46, Bruce Steers <bsteers4@xxxxxxxxx> wrote:
> Shouldn't it be MoveAfter(sKey) not MoveAfter(sName) ?
>
> Respects
> BruceS
>
>
> On Tue, 26 Aug 2025 at 15:55, Gianluigi <gradobag@xxxxxxxxxxx> wrote:
>
>> Hi,
>>
>> am I the one who doesn't understand how to use MoveAfter, or is this a
>> bug?
>>
>> See attachment
>>
>> Thanks, regards
>>
>> Gianluigi
>>
>>
| Re: ListView MoveAfter Malfunction | Bruce Steers <bsteers4@xxxxxxxxx> |
| ListView MoveAfter Malfunction | Gianluigi <gradobag@xxxxxxxxxxx> |
| Re: ListView MoveAfter Malfunction | Bruce Steers <bsteers4@xxxxxxxxx> |