小基本令牌不正确

问题描述 投票:0回答:1

我正在使用 LitDev 扩展编写代码。这是我的代码:

GraphicsWindow.BackgroundColor = "blue"
button = Controls.AddButton("Hej", 100, 100)
LDControls.SetButtonStyle(button, "Blue", "", "", "", "", "", 0, "False")

打开我的应用程序后,我收到一个错误: <>c__DisplayClass396_0.b__0:令牌不正确。

出了什么问题?

token smallbasic
1个回答
0
投票

参数必须用颜色定义,显然没有默认值

GraphicsWindow.BackgroundColor = "灰色" myButton = Controls.AddButton(" He j ", 200, 200) LDControls.SetButtonStyle(myButton, "蓝色", "黄色", "棕色", "白色", "橙色", "黑色", 3 , "假")

© www.soinside.com 2019 - 2024. All rights reserved.