| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 23 online users. » 0 Member(s) | 21 Guest(s) Applebot, Bing
|
| Latest Threads |
I never thought this woul...
Forum: Discussion
Last Post: litdev
07-10-2026, 10:18 AM
» Replies: 1
» Views: 104
|
ListView issues by use LD...
Forum: Extensions
Last Post: martmen
06-11-2026, 09:46 AM
» Replies: 6
» Views: 511
|
I think that no more Smal...
Forum: Discussion
Last Post: eddylo
04-24-2026, 12:54 AM
» Replies: 2
» Views: 603
|
D'ont read a file
Forum: Standard Small Basic
Last Post: WhTurner
04-12-2026, 03:39 PM
» Replies: 1
» Views: 298
|
close a file
Forum: Standard Small Basic
Last Post: francesco
04-12-2026, 08:59 AM
» Replies: 2
» Views: 417
|
random in a array
Forum: Standard Small Basic
Last Post: francesco
04-05-2026, 06:40 PM
» Replies: 4
» Views: 702
|
Sqlite Version
Forum: Extensions
Last Post: Lester
03-24-2026, 06:58 PM
» Replies: 3
» Views: 558
|
Small Basic Explorer with...
Forum: Challenges
Last Post: martmen
03-17-2026, 03:48 PM
» Replies: 0
» Views: 267
|
Example Program
Forum: Extensions
Last Post: martmen
03-13-2026, 04:15 PM
» Replies: 0
» Views: 267
|
BASIC Jam 7 is in progres...
Forum: Discussion
Last Post: eddylo
03-11-2026, 12:40 AM
» Replies: 3
» Views: 699
|
|
|
| ListView issues by use LDDatabase.AddListView |
|
Posted by: martmen - 06-08-2026, 04:39 PM - Forum: Extensions
- Replies (6)
|
 |
Hello everyone,
I have the following problem:
I create a ListView in a program using
LV = LDDataBase.AddListView(Width, Height)
With
LDControls.ListViewSelectionChanged = ListViewSelectionChanged
the subroutine ListViewSelectionChanged is supposed to be called when a row in the ListView is selected.
With
DBQuerry = LDDataBase.Query(DB, "Select * from " + TableName[BP], LV, "True")
I fill the ListView with all values from the defined table. Two records are present.
The program parts look like this:
SVSC = "False"
LDFocus.SetFocus(TBInput[1][InputText[1]])
Running = "True"
While Running = "True"
Program.Delay(20)
CheckButtonPressed()
CheckListViewSelect()
EndWhile
Program.End()
Sub CheckListViewSelect
If SVSC = "True" Then
SelectedRow = LDControls.LastListViewRow
TextWindow.WriteLine(SelectedRow)
LVValues = LDControls.ListViewGetRow(LV, SelectedRow)
TextWindow.WriteLine(LVValues)
SVSC = "False"
TextWindow.WriteLine("CheckListViewSelect " + SVSC)
EndIf
EndSub
Sub ListViewSelectionChanged
SVSC = "True"
TextWindow.WriteLine("ListViewSelectionChanged " + SVSC)
EndSub
Nothing is printed in CheckListViewSelect.
Does it not work because the ListView was defined using
LV = LDDataBase.AddListView(Width, Height)
?
LitDev, could you please check this and possibly provide a solution?
Thank you
Martin
Show program GXMV538.000
|
|
|
| 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
|
|
|
|