Welcome Forums General PowerShell Q&A Out-String

This topic contains 1 reply, has 2 voices, and was last updated by

1 year, 12 months ago.

  • Author
  • #66969

    Points: 0
    Rank: Member

    I have three functions that collect data from Labels, Textboxes and Comboboxes.
    I am trying to Out-String to a textbox.

    I can get the information in there but not how I want.

    So I would like it to look like:

    Label Text: User input text
    Label Text: Combobox input text.

    I have used three functions to make less code.
    1st function Takes main details of the user.
    2nd Function takes the problem from one of the tabs.
    Last Function Takes SLA details.

    Yet I cannot get them to show how I want.

    Unfortunally I cannot show code. 🙁

  • #67050

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Well, if you can't show at least some of what you're trying, it's a bit impossible to help. I'll try to be generic.

    I don't think Out-String is what you want. I think you want to create a double-quoted here-string. In it, you can use $(subexpressions) to reference your form controls. The subexpressions evaluate as code, so you can construct the block of text however you want.

The topic ‘Out-String’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort