Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox FileList and UNC paths
Message
 
To
08/04/2004 04:04:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00893068
Message ID:
00893255
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform