Hi, I am facing problem with printing array values in textfield. Printing values in one line. Tried with split also but no use.

What do you mean by "no use"? Did you get no output? Was the output just not in the right format?

I want the output in multi line and in a neat format. Please some one help me in this.

Can you provide info (or sample versions) on the what the expected content of the array is and what your desired output should look like?

Based on the little bit of code that you provide, I'm guessing that you're using something like Net::Telnet to get "output" from a telnet server and then print that "output" in a part of a Win32::GUI window. Is that correct? If so, my first step of debugging would be to ensure that my code is getting what I thought that I should be getting from the telnet server. Once that was confirmed, then I would add some code to set a variable to contain the formatted string that I wanted to be displayed in the Win32::GUI window and use that to set the text field's contents to that variable's value.

Also, are you sure that you want to use AddTextField? In my personal experience, I found it easier to create all of the elements of the window when the window is created and then later modify those elements.


In reply to Re: Win32::GUI textfield printing array values by dasgar
in thread Win32::GUI textfield printing array values by ckant8

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.