On 11/28/06 11:28 AM, "Youri" <[EMAIL PROTECTED]> wrote:
> I have the following code to populate a listbox :
>
> f=FontsFolder
>
> For i=1 to f.count
> self.ListBox1.addrow f.item(i).name
> Next
>
> I would like, that once the list is populated, the line containing the
> name of my default font (stored in self.Cal.propFont) to be selected in
> the listbox.
>
For
...
If f.item(i).name = myFontName then
n = listbox.LastRow
End if
Next
Listbox.Selected(n) = True
-Seth
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>