この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
I'm trying to put a couple of line breaks in between strMessage2 and strMessage3 in the automatic e-mail button in the following document. What am I missing? Thanks!
https://acrobat.com/#d=hSatmYfM4gqdX1cb-XRVMg
Win 7, LC ES2 9.0
解決済! 解決策の投稿を見る。
Make sure you are using \n and not /n.
表示
返信
いいね!の合計
"\n" is a return in JS.
So if you add a couple at the beginning of your strMessage3 text it should do the trick: "\n\n**THE DCO REQUEST..."
表示
返信
いいね!の合計
Nope, that doesn't work. It only prints the "/n/n" as text before the message. Putting it outside just before the quotes does not work either, that disables the button function completely.
Make sure you are using \n and not /n.
表示
返信
いいね!の合計
Oops, make sense. It works now, thanks!
I'm using these "\n" in several scripts that have multiple lines, so I'm using the "+" at the end of the line to continue. When I use a single "\n" the "+" becomes inactive, but when I use "\n\n" it works again. Do you know what this is about?
This works:
"bla bla \n\n" +
This doesn't work:
"bla bla \n" +
表示
返信
いいね!の合計
Can anyone shed any light on this? Thanks.
表示
返信
いいね!の合計
both work fine for me.
I had to add "bla bla \n\n" + "bla" or "bla bla \n" + "bla" If you have the + after but do not follow it with something then it does not work.
表示
返信
いいね!の合計
When I put just one ".... \n" at the end of a line, the "+" goes inactive (not blue), like it's not working. What am I doing wrong?
表示
返信
いいね!の合計
You are correct the + sign does turn black after a single return \n but blue after a double \n\n but both work for me. It could be a bug in LCD. To be honest I did not even notice the color change until I changed the font size of my script window.
You were right! I assumed because the color was not correct that the syntax was bad, so I never actually tried leaving it that way. As you say, it does work.
Thanks.
表示
返信
いいね!の合計