Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
List Box Additem with double slash
(had all kinds of problems sending before)
In adding all available printers to a listbox with the ADDITEM or ADDLISTITEM method, network printers have an identification of "\\...printer"
I found it very interesting on how the listbox removes the first '\' when more than one is present.
For example use the following
this.lst1.additem("\abc")
this.lst1.additem("abc\abc")
this.lst1.additem("\\abc")
this.lst1.additem("abc\\abc")
this.lst1.additem("\> abc")
Can anyone explain why this is happening??
Is there a simple solution other than coding to determine replace '\\' with '\\\' before adding?
Thanks in advance
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement