OK, I'll try them. However, the "\n" I used didn't work. outTE.AppendText("Hello World !\n") outTE.AppendText("Nice to meet you !") The output on the text edit shows "Hello World ! Nice to meet you !" But when I use "\r\n", it works! Yes, the word should be "button", not "bottom". Thanks for your help!
HaWe於 2019年10月10日星期四 UTC+8下午4時42分35秒寫道: > > Don't know about the lnx package. And I didn't check your code. > But I can answer beginner's questions: > > 1. The plus sign means concatenation for strings. > var s = "text" > s += "\n" > 2. fmt.Println prints to standard output, but fmt.Sprintln prints to a > string. > 3. Similar answer: Use fmt.Sscanf. > > Ahh ... and you might like the word 'button' better than 'bottom' :-) > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c08e5880-0b37-409c-a1aa-678e07f069a1%40googlegroups.com.