首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Smallbasic中的换行代码/旁路是什么?或者如何绕过错误消息Smallbasic?

Smallbasic中的换行代码/旁路是什么?或者如何绕过错误消息Smallbasic?
EN

Stack Overflow用户
提问于 2022-06-09 18:18:22
回答 1查看 28关注 0票数 0

我使用的是MS和,而不是的在线版本。在在线版本中,您可以只使用TextWindow.WriteLine(),但是在下载的版本中,您会得到一条错误消息,因为它至少需要一个参数,而且不能是空的。

我试着使用一个变量和一个数组,但是它仍然不能工作。是否有其他方法可以使换行

,如果你知道的话,谢谢你。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-06-13 21:23:40

您可以使用Textwindow.WriteLine("")作为换行器。

见Demo:

代码语言:javascript
运行
复制
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("")
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72564894

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档