Found an issue in SpiderBasic ? Please report it here !
munfraid
 
Posts: 67
Joined: Sat Mar 24, 2018 1:33 pm

Space() doesn't work in TextGadget()

by munfraid Tue Feb 16, 2021 6:16 pm

The command Space() works as expected, but if you pass the string to a TextGagdet() the amount of spaces more than 1 are ignored.

Code: Select all
text.s = "A" + Space(10) + "B"
Debug text

OpenWindow(0, 100, 100, 400, 300, "")
TextGadget(0, 0, 0, 400, 300, text)


The reason is that the Textgadget uses Html, so you need to use " " to display additional spaces.

Don't know if this is really to call a bug, but imo it should be mentioned in the docs to avoid confusion.
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 1 guest