Jerry

You appear to be using Win32::GUI or something similar?

You need to provide more information about your application for us to
understand your problem, but it may be useful to point out that a dropdown
list will return exactly the information put into it. If you put trailing
spaces into your data then they will be returned intact. Just because there
is space in the list box after the end of the data doesn't mean there are
trailing spaces in the data. Try:

    sap    => {
               '01-17642-200' => '4600004-0001',
               '01-17615-700' => '4600003-0001',
               '01-17533-410' => '4600970-0001',
               '01-17533-408' => '4600971-0001',
               'CP1417      ' => '4600971-0001',
             },

HTH - that's all I can suggest without more info.

Cheers,

Rob

----- Original Message -----
From: "Jerry Preston" <[EMAIL PROTECTED]>
To: "Beginners Perl" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 9:20 PM
Subject: displaying spaces


> Hi!!
>
> I have some vales in a table:
>
>                        sap    => {
>                                    '01-17642-200' => '4600004-0001',
>                                    '01-17615-700' => '4600003-0001',
>                                    '01-17533-410' => '4600970-0001',
>                                    '01-17533-408' => '4600971-0001',
>                                    'CP1417'         => '4600971-0001',
>                                  },
>
> I want to be able to display them so that they line up:
>
> 01-17642-200  4600004-0001
> 01-17615-700  4600003-0001
> 01-17533-410  4600970-0001
> 01-17533-408  4600971-0001
> CP1417          4600971-0001
>            ^^^^^^^^
>
> How do I get perl not to remove the spaces in the dropdown when selecting?
>
>   print $query->popup_menu( -name     => 'part_number',
>                             -values   => \@{$TABLES_RMA::T_PARTS{
> $part_number_control }{ sap }},
>                             -default  => $part_number,
>                             -onchange => " var
> part_number=update_form.part_number.options[
> update_form.part_number.selectedIndex ].value;",
>                           );
>
>
> I have tried "&nbsp;" and it will no run.
>
> Thanks,
>
> Jerry
>
>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to