Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox FileList and UNC paths
Message
De
08/04/2004 04:04:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00893068
Message ID:
00893201
Vues:
20
>Is there a way to make the ListBox let you browse to UNC paths?
>
>If not, what other alternatives are recommended?
>
>TIA
oForm=Createobject('myForm')
oForm.Show
Read Events

Define Class myForm As Form
  Add Object myList As ListBox With Width = 400

  Procedure myList.Init
  With This
    .ColumnCount=2
    .ColumnWidths='200,100'
    For ix = 1 To 5
      If ix = 3 && Disable this one
        .AddItem("\]"+"\\\\myserver"+Padl(ix,2,'0')+"\mypath\myfolder")
        .Addlistitem('MyFileName',m.ix,2)
      Else
        .AddItem("\\\\myserver"+Padl(ix,2,'0')+"\mypath\myfolder")
        .Addlistitem('MyFileName',m.ix,2)
      Endif
    Endfor
  Endwith
Endproc
  Procedure myList.DblClick
  With This
    Messagebox(.List(.ListIndex))
  Endwith
Endproc

  Procedure QueryUnload
  Clear Events
Endproc
Enddefine
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform