Search:

Type: Posts; User: RandomAccount11

Search: Search took 0.02 seconds.

  1. Replies
    10
    Views
    901

    Re: Read file and assign to variable

    I'm basically trying to put these 'right' and 'wrong' strings into a results table. I need to assign these 6 strings into their designated rows. So I need:

    Label1.text = first line of text file...
  2. Replies
    10
    Views
    901

    Re: Read file and assign to variable

    Thank you. The code below works and shows up in the label. However, the entire text file shows up in the label. For example, it shows 6 lines of "right". Is there a way I can select each line...
  3. Replies
    10
    Views
    901

    Re: Read file and assign to variable

    What different command do you suggest?
  4. Replies
    10
    Views
    901

    Re: Read file and assign to variable

    Below I have just used the code to try and read the first line to test if it shows up on the form, but it doesn't.

    Dim Reader As IO.StreamReader
    Dim StringReader As String

    ...
  5. Replies
    10
    Views
    901

    Read file and assign to variable

    I understand how to read a file but I'm unsure on how to assign each line of text in the file to an array variable. I've attempted many times but when I assign it to a label, it's completely empty.
  6. Replies
    4
    Views
    852

    Re: Saving to text file

    Thank you. It's now working perfectly.
  7. Replies
    4
    Views
    852

    Saving to text file

    Hello,

    I'm trying to save whether the user got the answers to questions "right" or "wrong" in a list to a text file. When I try to do this, it only ends up saving one line of an answer. My code is...
  8. Re: Change text in multiple labels at once

    Thank you so much!
  9. Change text in multiple labels at once

    Hello,

    I'm looking for a way to change text in multiple labels all at once by using a loop instead of changing them individually as this takes a long time and is quite repetitive. Is this...
Results 1 to 9 of 9



Click Here to Expand Forum to Full Width