Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox with UNC Printer backslashes Problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00874448
Message ID:
00874789
Views:
17
Thanks, Sergey.

Richard

>Hi Richard,
>
>It works only if you use Additem() method to populate a ListBox. You can either use that or prefix items in the array with one space.
* Additem()
>FOR i=1 TO ALEN(Thisform.aList,1)
>	Thisform.aList[i,1] = STRTRAN(Thisform.aList[i,1], "\", "\\")
>	This.AddItem(Thisform.aList[i,1])
>ENDFOR
>* Add leading space
>FOR i=1 TO ALEN(Thisform.aList,1)
>	Thisform.aList[i,1] = Space(1) + Thisform.aList[i,1]
>ENDFOR
>This.RowSourceType = 5
>This.RowSource = "Thisform.aList"
>
>
>>The VFP Help says to display backslashes to double them (i.e., \\\\[Public]\\Someprinter) This doesn't work it still shows as a disabled item with \\\[Public]\\SomePrinter.
>>
>>What am I doing wrong? I'm using STRATRAN to replace all backslashes given in APRINTER() with '\\'.
>>
>>TIA
>>Richard
State of Florida, DCF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform