For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > July 2005 > Passing a character in a Listbox Widget









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Passing a character in a Listbox Widget
Tony

2005-07-24, 8:45 pm

I want to display an array that has hyphens in the items. They are not being
displayed in a listbox widget. Is there a way to do this?

Tnx

Tony


Marc Dashevsky

2005-07-24, 8:45 pm

In article <uIWDe.404$mf5.53@fe12.lga>, tony90@optonline.net says...
> I want to display an array that has hyphens in the items. They are not being
> displayed in a listbox widget. Is there a way to do this?


Yes there is.

Is there a way you can show us what hasn't worked for you?

--
Go to http://MarcDashevsky.com to send me e-mail.
(Reunion -- http://ClassicalHigh70.com)
Tony

2005-07-24, 8:45 pm

The problem is that I am using a backtick command to populate an array to
this listbox. The command looks like this:

@bl = `cleartool lstype -fmt "%n %($attr_field)a Age in Days:
%Ad\\n" -kind lbtype`;

The problem is that if $attr_field has a hyphen in any of the array members,
the listbox doesn't display.

Any guess to how I can get around this?




"Marc Dashevsky" <Usenet@MarcDashevsky.com> wrote in message
news:MPG.1d4a0783911ec473989768@news.supernews.com...
> In article <uIWDe.404$mf5.53@fe12.lga>, tony90@optonline.net says...
being[color=darkred]
>
> Yes there is.
>
> Is there a way you can show us what hasn't worked for you?
>
> --
> Go to http://MarcDashevsky.com to send me e-mail.
> (Reunion -- http://ClassicalHigh70.com)



Marc Dashevsky

2005-07-24, 8:45 pm

In article <%hXDe.3823$Qy1.1236@fe09.lga>, tony90@optonline.net says...
> The problem is that I am using a backtick command to populate an array to
> this listbox. The command looks like this:
>
> @bl = `cleartool lstype -fmt "%n %($attr_field)a Age in Days:
> %Ad\\n" -kind lbtype`;
>
> The problem is that if $attr_field has a hyphen in any of the array members,
> the listbox doesn't display.
>
> Any guess to how I can get around this?


I don't see a Listbox widget in any of this. Are you saying that
need help understanding how to pass arbitrary text in a command line?

--
Go to http://MarcDashevsky.com to send me e-mail.
(Reunion -- http://ClassicalHigh70.com)
Tony

2005-07-24, 8:45 pm

Marc:

I have found the problem and it was syntax related to the array command.

Tnx for the help.

Tony


"Marc Dashevsky" <Usenet@MarcDashevsky.com> wrote in message
news:MPG.1d4a0c78c0028a13989769@news.supernews.com...
> In article <%hXDe.3823$Qy1.1236@fe09.lga>, tony90@optonline.net says...
to[color=darkred]
members,[color=darkred]
>
> I don't see a Listbox widget in any of this. Are you saying that
> need help understanding how to pass arbitrary text in a command line?
>
> --
> Go to http://MarcDashevsky.com to send me e-mail.
> (Reunion -- http://ClassicalHigh70.com)



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com