我使用的是MS和,而不是的在线版本。在在线版本中,您可以只使用TextWindow.WriteLine(),但是在下载的版本中,您会得到一条错误消息,因为它至少需要一个参数,而且不能是空的。
我试着使用一个变量和一个数组,但是它仍然不能工作。是否有其他方法可以使换行?
,如果你知道的话,谢谢你。
发布于 2022-06-13 21:23:40
您可以使用Textwindow.WriteLine("")作为换行器。
见Demo:
TextWindow.WriteLine("ASCII CODE TABLE")
TextWindow.WriteLine("")
TextWindow.WriteLine(" + 0 1 2 3 4 5 6 7 8 9 A B C D E F")
For code = 0 To 127
rem = Math.Remainder(code, 16)
div = Math.Floor(code / 16)
If rem = 0 Then
TextWindow.Write(Text.Append(div, "0 "))
EndIf
If (code < 7) Or ((10 < code) And (code <> 13)) Then
TextWindow.Write(Text.GetCharacter(code) + " ")
Else
TextWindow.Write(" ")
EndIf
If rem = 15 Then
TextWindow.WriteLine("")
EndIf
EndFor
TextWindow.WriteLine("")
TextWindow.Write("07=BEL ")
TextWindow.Write("08=BS ")
TextWindow.Write("09=TAB ")
TextWindow.Write("0A=LF ")
TextWindow.WriteLine("0D=CR")
TextWindow.WriteLine("")
https://stackoverflow.com/questions/72564894
复制相似问题