Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox with UNC Printer backslashes Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00874448
Message ID:
00874789
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform