| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 890
» Latest member: JesseGem
» Forum threads: 229
» Forum posts: 2,303
Full Statistics
|
| Online Users |
There are currently 28 online users. » 0 Member(s) | 28 Guest(s)
|
| Latest Threads |
I think that no more Smal...
Forum: Discussion
Last Post: eddylo
04-24-2026, 12:54 AM
» Replies: 2
» Views: 266
|
D'ont read a file
Forum: Standard Small Basic
Last Post: WhTurner
04-12-2026, 03:39 PM
» Replies: 1
» Views: 50
|
close a file
Forum: Standard Small Basic
Last Post: francesco
04-12-2026, 08:59 AM
» Replies: 2
» Views: 88
|
random in a array
Forum: Standard Small Basic
Last Post: francesco
04-05-2026, 06:40 PM
» Replies: 4
» Views: 199
|
Sqlite Version
Forum: Extensions
Last Post: Lester
03-24-2026, 06:58 PM
» Replies: 3
» Views: 173
|
Small Basic Explorer with...
Forum: Challenges
Last Post: martmen
03-17-2026, 03:48 PM
» Replies: 0
» Views: 94
|
Example Program
Forum: Extensions
Last Post: martmen
03-13-2026, 04:15 PM
» Replies: 0
» Views: 105
|
BASIC Jam 7 is in progres...
Forum: Discussion
Last Post: eddylo
03-11-2026, 12:40 AM
» Replies: 3
» Views: 281
|
LitDev extension
Forum: Extensions
Last Post: martmen
02-24-2026, 07:20 AM
» Replies: 2
» Views: 266
|
Button with icons
Forum: Extensions
Last Post: martmen
02-09-2026, 06:33 PM
» Replies: 6
» Views: 461
|
|
|
| D'ont read a file |
|
Posted by: francesco - 04-12-2026, 09:11 AM - Forum: Standard Small Basic
- Replies (1)
|
 |
In the following code there is a problem, it does not read the file for me.
Code: Sub frasi_puoi_passare
max1a = 0
min1a = 1
numero_estratto1a = 0
' Chiedi il percorso del file
filePath1a = Program.Directory + "/testidescrittivi/fileyes1.txt"
' Legge tutto il contenuto del file
contenuto1a = File.ReadContents(filePath1a)
for i1a=1 to 999 ' ' if there are not more then 999 lines in the file
contenuto1a[i1a]=File.ReadLine(filepath1a,i1a)
if contenuto1a[i1a]="" then
i1a=1000
else
lunghezza1a=i1a
endif
endfor
GraphicsWindow.ShowMessage(contenuto1a,"Contenuto")
' Calcoliamo la lunghezza della lista
'lunghezza = Array.GetItemCount(contenuto) ' mi da' lunghezza = 0 ERRORE
GraphicsWindow.ShowMessage(lunghezza1a,"LUNGHEZZA")
numeroCasuale1a = Math.GetRandomNumber(lunghezza1a - min1a) + (min1a - 1)
' Generiamo un indice casuale tra 1 e lunghezza
' Estraiamo l'elemento corrispondente
elementoCasuale1a = contenuto1a[numerocasuale1a]
' Mostriamo il risultato
GraphicsWindow.ShowMessage("Elemento estratto: " + elementoCasuale1a, "elemento")
EndSub
file:
Puoi passare,
Vai avanti,
Prosegui,
Non ti fermare
|
|
|
| close a file |
|
Posted by: francesco - 04-07-2026, 10:01 PM - Forum: Standard Small Basic
- Replies (2)
|
 |
closing a txt file in small basic, I found a link that said it wasn't necessary, but instead if I try to run the program 2 times it gives me an error, because the file is already in use by another task
|
|
|
| Example Program |
|
Posted by: martmen - 03-13-2026, 04:15 PM - Forum: Extensions
- No Replies
|
 |
Hello everyone,
you can also program in Small Basic like this.
Take a look at the program KLLX711.000.
Best regards,
Martin
Hello everyone,
you can also program in Small Basic like this.
Take a look at the program KLLX711.000.
Best regards,
Martin
|
|
|
| LitDev extension |
|
Posted by: martmen - 02-20-2026, 09:12 AM - Forum: Extensions
- Replies (2)
|
 |
Hello LitDev,
I hope you are doing well. Several corrections for your extension have already been submitted.
May I kindly ask when a new version of the extensions might be available?
Best Regards
Martin
|
|
|
| Button with icons |
|
Posted by: martmen - 02-08-2026, 11:07 AM - Forum: Extensions
- Replies (6)
|
 |
Hello LitDev,
is it possible with the LitDev extension to display buttons with icons instead of text? It would be great to be able to use both the standard Windows icons and custom icons.
I want to build my DRAWING program using icons.
Many thanks
martmen
|
|
|
| Drawing |
|
Posted by: martmen - 01-29-2026, 10:06 AM - Forum: Extensions
- Replies (1)
|
 |
Version 1.0
Description:
This program provides an interactive drawing surface where
the user can draw various shapes (circle, ellipse, square,
rectangle, triangles, polygon, star), move, rotate, zoom,
fill them with colors, clear, print, save and load drawings.
It uses Small Basic plus the LitDev extension.
Show XRKM481.000
Sample:
|
|
|
|