Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get the data out of an Array APRINTERS()
Message
De
21/11/1997 11:00:56
 
 
À
21/11/1997 10:59:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00061601
Message ID:
00061611
Vues:
34
>>>Hello all
>>>
>>>I am creating a form to print a couple of labels, they will be printed on two different printers. I want the user to select a check box as to weather or not a label is printed and if it is, to select a printer from a ComboBox with it datasource set to an array. I use APRINTERS() to create the Array. Problem... some of the elements in the array start with (\) (\\G6-200\HP4V) which in turn disables them in the drop down list.
>>>
>>>What can I do to prevent them from being disabled in the Drop down List?
>>>
>>>Thanks
>>>Jon Wilshusen
>>>Omaha NE
>>
>>I think before displaying in the combo, you could modify array elements a little bit, e.g. adding space(1) on left. When selection is made, you can LTRIM() the space out.
>
>Ed
>thanks for the reply
>
>I thought that too, but I cant seem to find any info in the Help files or online docum. that explains anything about modifing array elements. Kinda like using a REPLACE command or something

For n=1 to alen(aPrinterarray)
aPrinterarray[n]=space(1)+aPrinterarray[n]
Endfor
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform