realbasic-nug.fr
[Top] [All Lists]

Ligne suivante dans une ListBox (Re: Petites questions)

To: RB Liste fr <realbasic-nug dot fr at lists dot realsoftware dot com>
Subject: Ligne suivante dans une ListBox (Re: Petites questions)
From: Francois Van Lerberghe <fvanlerberghe at freegates dot be>
Date: Sat, 31 May 2008 14:34:06 +0200
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug dot fr-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug dot fr-bounces at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot fr at lists dot realsoftware dot com
le 31/05/08 11:44, Sébastien Debiève <heero3 at mac dot com> a écrit :

> existe-t-il un code permettant
> d'avancer dans une listbox en cliquant dans un pushbutton. j'avais
> pensé à quelque chose du genre listbox1.index=+1

ListBox1.ListIndex = min(ListBox1.ListIndex + 1, ListBox1.ListCount-1)

(La fonction Min étant utilisée pour éviter le cas où tu es déjà sur ta
dernière ligne).

François Van Lerberghe
Rue Thier Monty, 15 A
4570 Marchin
Belgique



<Prev in Thread] Current Thread [Next in Thread>