Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the data out of an Array APRINTERS()
Message
From
21/11/1997 11:00:56
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00061601
Message ID:
00061611
Views:
29
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform