Out-String

Welcome Forums General PowerShell Q&A Out-String

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

 
Keymaster
1 year, 8 months ago.

  • Author
    Posts
  • #66969

    Participant
    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.
    Etc..
    Etc..

    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

    Keymaster
    Points: 1,704
    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.