>>>>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
Ed,
You have got to be kidding. It surely isn't this simple :) I'll give this a whirl, and thanks so much.
Thanks agian
Jon Wilshusen
Thanks
Jon
Non-MVP Non-MCP Non-MCSE
Visual FoxPro, What else is there?