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.
>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