We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 662
» Latest member: Anthonyduacy
» Forum threads: 198
» Forum posts: 2,120

Full Statistics

Online Users
There are currently 5 online users.
» 0 Member(s) | 4 Guest(s)
Bing

Latest Threads
Diving into Z-S's SB.js w...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
06-26-2025, 05:23 PM
» Replies: 2
» Views: 58
SBJS coming soon
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
06-25-2025, 01:54 PM
» Replies: 2
» Views: 42
Google Search Terminal SB...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
06-24-2025, 01:27 PM
» Replies: 0
» Views: 21
Google Search Terminal SB...
Forum: Standard Small Basic
Last Post: z-s
06-24-2025, 03:46 AM
» Replies: 1
» Views: 29
Google Search Terminal SB...
Forum: Standard Small Basic
Last Post: sm4llprogrammer2008
06-23-2025, 09:47 PM
» Replies: 0
» Views: 19
Replace Small Basic?
Forum: Discussion
Last Post: z-s
06-23-2025, 09:37 AM
» Replies: 12
» Views: 203
SB Forms extension
Forum: Extensions
Last Post: sm4llprogrammer2008
06-22-2025, 10:30 PM
» Replies: 1
» Views: 509
ZS Extension.
Forum: Extensions
Last Post: z-s
06-21-2025, 08:58 AM
» Replies: 98
» Views: 13,392
LDGraphicsWindow.Transpar...
Forum: Extensions
Last Post: martmen
06-12-2025, 10:05 AM
» Replies: 2
» Views: 126
Small Basic super slow ??
Forum: Standard Small Basic
Last Post: Elzaimer
06-10-2025, 07:21 PM
» Replies: 24
» Views: 697

 
  Small Basic is more powerful than this.
Posted by: eddylo - 01-04-2024, 02:56 PM - Forum: Discussion - No Replies

I discovered the game. I believe that an experienced Small Basic user is able to do more.Undecided
https://itch.io/jam/jam-for-all-basic-di...te/2449200

Print this item

  Can't get LDTimers to work
Posted by: jrmrhrb00 - 12-25-2023, 08:44 PM - Forum: Extensions - Replies (4)

LitDev,

Here's the code:

'Timer.interval= 10
'Timer.tick=OnTimerTick

'Name=LDTimer.Addtick(OnTimerTick)
'LDTimer.Interval(Name,10)

Name=LDTimer.Add()
LDTimer.Interval(Name,10)
LDTimer.Tick=OnTimerTick

Sub OnTimerTick
  TextWindow.WriteLine("Here")
EndSub

The first 2 lines are the regular timer. That works, but it has been commented out. The next 2 lines have been commented out and they don't work. The next 3 have not been commented out, but they don't work either. I couldn't find this in the old forum. So, how do you make these work. To me they are setup like the first 2 lines which do work.

JR

Print this item

  Sb-Prime Variables at bottom not being set
Posted by: jrmrhrb00 - 12-17-2023, 03:14 PM - Forum: Extensions - Replies (3)

LitDev,

I noticed that while checking out stepping in a program that all of the variable values don't get set at the bottom of the screen in the debug window. If I step through the below program in prime var3 and var5 don't get set. If I hover over them they do show the values. Also, if I have the variable and call stack displayed it works correctly.

JR



Var1="This"
var2="that"
var3="and"
var4="so"
var5="on"
while "True"
  Program.Delay(30)
  EndWhile

Print this item

  How should icons be used in LDControls.AddMenu()
Posted by: Scout - 12-12-2023, 10:38 PM - Forum: Extensions - Replies (4)

The following program overwrites the line checklist["By Index"]="True" the On.ico icon.
How should the icons be used?

menuList["File"] = "Main"
menuList["Record"] = "Main"
menuList["Sort"] = "Main"
menuList["Help"] = "Main"
menuList["New Database"] = "File"
menuList["Open Database"] = "File"
menuList["Exit"] = "File"
menuList["Add Record"] = "Record"
menuList["Find by ID"] = "Record"
menuList["Records"] = "Record"
menuList["Exact Match"] = "Records"
menuList["Partial Match"] = "Records"
menuList["By Field"] = "Sort"
menuList["By Index"] = "Sort"
menuList["Print File"]= "Sort"
menuList["Print Label"]="Sort"
menuList["About"] = "Help"
iconList["File"]= Program.Directory + "\On.ico"
iconList["New Database"]= Program.Directory + "\On.ico"
iconList["Records"] = Program.Directory + "\On.Ico"
iconList["Exact Match"] = Program.Directory + "\On.Ico"
iconList["Partial Match"] = Program.Directory + "\Off.Ico"
iconList["By Index"] = Program.Directory + "\On.Ico"
iconList["By Field"] = Program.Directory + "\Off.Ico"
iconList["About"] = Program.Directory + "\On.Ico"
checklist["By Index"]="True"
menu = LDControls.AddMenu(GraphicsWindow.Width,32,menuList,iconList,checkList)

Print this item

  Variables in Subroutines
Posted by: jrmrhrb00 - 12-08-2023, 12:49 AM - Forum: Discussion - Replies (20)

LitDev,

Using SB-Prime I wanted to capture variable changes while in the subroutine. These only show after the program goes back to the main loop. Is there any way to get it to do what I want it to do? I know the variables change while in the subroutine, but they don't show it.

JR

Print this item

  SB-Prime Debug Guide
Posted by: jrmrhrb00 - 12-08-2023, 12:35 AM - Forum: Discussion - Replies (4)

LitDev,

I was in SB-Prime and tried to read the Debug Guide. When I click on that it takes me to a page asking if I want to buy that domain.  I think the button for the guide has the wrong link. Here is what is in the link:  litdev.co.uk/forum/HowToDebug.pdf. First part should probably be litdev.uk.

JR

Print this item

  LitDev Extension LDFinances.HistoricalPrice
Posted by: jrmrhrb00 - 11-17-2023, 11:42 PM - Forum: Extensions - Replies (1)

LitDev,

I noticed in the Intellisense that it says the command "LDFinances.HistoricalPrice" says that it returns nothing. That is incorrect. It returns the historical prices.

JR

Print this item

  Performance of the SB-Prime Editor
Posted by: Scout - 11-12-2023, 04:06 PM - Forum: Extensions - Replies (6)

One of the very few good things that Q&A has brought to the SmallBasic language is the removal of the 64KByte limit for source code when publishing/importing.
I mean this came with the change of IDs from ABC123-0 to ABCD123.000.
Now really big and good programs can be published if someone has used SmallBasic in a specific topic.

However, long execution times occurred when loading the 167kB program Calendar PTKR773.0000, as well as when searching for "follow" between lines 500 and 1600.
Searching is significantly faster with the standard SmallBasic.
I hope it's not a big problem.


Update: The search function is fast again. I don't know what that was about.
             However, the loading function is still slow. Significantly faster in standard SmallBasic.

Print this item

  Small Basic Only Extension
Posted by: jrmrhrb00 - 11-02-2023, 06:09 PM - Forum: Discussion - Replies (28)

I was thinking about newcomers to small basic. One of the problems that they have while doing a tutorial is in getting it to work properly. This occurs because in level 1.2 things don't work as they used to. A lot of functions are broken, like Flickr or DownloadFile.With the litdev extension a lot of the current issues with 1.2 have been fixed. Microsoft no longer supports small basic. So, is there a way to get 1.2 to the level that a newcomer would need to be able to go through the tutorials without issues. 

Since Microsoft won't support changes I was wondering if litdev would be willing to make a small basic fix extension. In other words in that extension only have fixes for what is broke. I think that would take small basic back to what it used to be and make it easier for newcomers. Also, the current litdev extension has made small basic harder to learn if that extension is loaded.

Thoughts?

JR

Print this item

  LDControls.SetButtonStyle (..) Parameter
Posted by: Scout - 10-16-2023, 09:28 PM - Forum: Extensions - No Replies

After 4 months another request on StackOverflow:

https://stackoverflow.com/questions/7730...-incorrect

Print this item