Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why combo shows a printer grayed?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01051367
Message ID:
01051371
Views:
6
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform