Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why combo shows a printer grayed?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01051367
Message ID:
01051371
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>I have a combo box which allows user to select a printer. The INIT method of the combo box has the following code:
>
>
>this.addproperty("aInstalledPrinters[1,2]","")
>aPrinters( this.aInstalledPrinters )
>this.rowsource = "this.aInstalledPrinters"
>
>
>Then, the combo box shows the default printer (local) and the network printer (named "\\TUAH-FTP\ENG01"). But the network printer is shown grayed. Therefore, user cannot select this printer from the combo list. If we type the network printer name in the combo textbox and print to this name, it goes to the default printer (local).
>
>I was wondering, why is the network printer name grayed in the combo list?
>
>Thank you.

Because \ is used to disable values in combos, that's why :) You would need to post-process this array.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform