Out-String

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 1 month ago.

  • Author
    Posts
  • #66969
    Profile photo of Chris Eves
    Chris Eves
    Participant

    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
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.

You must be logged in to reply to this topic.