Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox FileList and UNC paths
Message
 
À
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:
00893255
Vues:
19
You're a great resource, Cetin!

If I'm reading this correctly, we're inserting UNC's 'manually' rather than detecting them from the network. I think I may need to switch to the MS Common Dialog instead...

>>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
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform