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: 620
» Latest member: tugrub.com
» Forum threads: 186
» Forum posts: 2,040

Full Statistics

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

Latest Threads
Request for command exten...
Forum: Extensions
Last Post: martmen
05-27-2025, 09:42 AM
» Replies: 2
» Views: 73
Multi Language GUI
Forum: Extensions
Last Post: kellanphil
05-27-2025, 02:00 AM
» Replies: 3
» Views: 188
Solution for large window...
Forum: Extensions
Last Post: martmen
05-25-2025, 10:17 AM
» Replies: 0
» Views: 74
ZS DIALOG ERROR
Forum: Extensions
Last Post: litdev
05-21-2025, 08:37 AM
» Replies: 4
» Views: 144
The OpenSB Project - reus...
Forum: Discussion
Last Post: z-s
05-19-2025, 12:56 AM
» Replies: 8
» Views: 185
Guys!
Forum: Discussion
Last Post: z-s
05-17-2025, 01:25 AM
» Replies: 1
» Views: 70
Creation of SB-Neuron. Ou...
Forum: Discussion
Last Post: AbsoluteBeginner
05-15-2025, 03:46 PM
» Replies: 102
» Views: 10,017
Few questions
Forum: Standard Small Basic
Last Post: litdev
05-14-2025, 09:36 AM
» Replies: 1
» Views: 85
Show ZPHB733.000 LDContro...
Forum: Extensions
Last Post: sm4llprogrammer2008
05-13-2025, 10:15 PM
» Replies: 5
» Views: 232
Another question.
Forum: Standard Small Basic
Last Post: litdev
05-13-2025, 07:04 AM
» Replies: 1
» Views: 68

 
  Get LitDev Extension
Posted by: litdev - 09-09-2023, 04:26 PM - Forum: Extensions - Replies (2)

You can get the LitDev extension from https://litdev.uk/#Extensions, with installation instructions https://litdev.uk/#Usage.

There is plenty of documentation and other utilities, all on https://litdev.uk.

This forum is the best place to ask any questions on this Small Basic extension.

Print this item

  Challenge 1 - TextWindow login
Posted by: litdev - 09-04-2023, 09:18 AM - Forum: Challenges - Replies (1)

Write a TextWindow login program.

It should have options to:

  • create and account and set a password
  • login using existing account and password (checking the password)

To extend the program you could:
  • have a reset password option
  • save the passwords so that the program can be rerun
  • consider how to 'encrypt' the passwords
  • write a GraphicsWindow version

Print this item

  Welcome
Posted by: litdev - 09-02-2023, 08:38 PM - Forum: Standard Small Basic - Replies (19)

Welcome,

Good places to start with Small Basic programming include:

Small Basic - Install Small Basic
Introduction to Small Basic - Introduction
Small Basic Forum - Now closed, but loads of good stuff there
Tutorials - Class style lessons
Facebook - Lots of cool, mainly graphics examples
YouTube - Nice introductory tutorials
Wiki guides - Some articles I wrote after several years supporting Small Basic

When asking a question, you can share your program using the Publish and Import feature shown below.  Then just post the 10 digit code (e.g. MGMF705.000) to keep posts short.  You can of course include short program segments as well.

   

There is no substitute for just having a go - you can't break anything - and ask questions!

Due the large number of spam users, we are relatively agressive banning and in some cases preventing acount activation.  If you are having trouble with activation, then please contact admin@litdev.uk.

Have fun programming...

Print this item

  Flickr
Posted by: litdev - 09-02-2023, 07:33 PM - Forum: Extensions - Replies (8)

I have previously fixed issues with Small Basic Flickr command, due to changes in flickr api.

I had a look at it again as it doesn't work and determined that this time the api key has expired.  I got a new api key and updated LDUtilities.FixFlickr.  It seems to need to download the file rather than just load with ImageList, but the following works (Beta 1.2.25.0).

Code:
LDNetwork.SetSSL()
flickr = LDUtilities.FixFlickr()
imageURL = Flickr.GetRandomPicture("Car")
tmpFile = File.GetTemporaryFilePath()
LDNetwork.DownloadFile(tmpFile,imageURL)
image = ImageList.LoadImage(tmpFile)
File.DeleteFile(tmpFile)
GraphicsWindow.DrawResizedImage(image,0,0,GraphicsWindow.Width,GraphicsWindow.Height)

Print this item

  Network file transfer
Posted by: litdev - 09-02-2023, 05:27 PM - Forum: Extensions - No Replies

While reinstating website and extension downloader, I found that various webserver requests, like ftp etc failed.  The solution was to set the following (C#) before starting web requests.

Code:
WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultCredentials;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
I then tried one of my old programs that uses a web resource image and it failed.  It was the same SSL security issue.  The same fix, implemented with LDNetwork.SetSSL().  The following SB now works, even with standard SB ImageList web access for networked resources.
Code:
LDNetwork.SetSSL()
image = ImageList.LoadImage("https://litdev.uk/game_images/rubic.png")
GraphicsWindow.DrawImage(image,0,0)
This should open up a lot of options for networked resources, and is available with LitDev Beta version (1.2.25.0).

Print this item

  Welcome
Posted by: litdev - 09-01-2023, 08:29 AM - Forum: Discussion - Replies (2)

Welcome to this Small Basic forum.

The idea of this forum is to provide a resource for questions and answers.

Please use this Discussion section for general Small Basic discussions.

Due the large number of spam users, we are relatively agressive banning and in some cases preventing acount activation.  If you are having trouble with activation, then please contact admin@litdev.uk.

Print this item