| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 41 online users. » 1 Member(s) | 38 Guest(s) Baidu, Bing, Robertnaity
|
| Latest Threads |
ListView issues by use LD...
Forum: Extensions
Last Post: martmen
06-11-2026, 09:46 AM
» Replies: 6
» Views: 236
|
I think that no more Smal...
Forum: Discussion
Last Post: eddylo
04-24-2026, 12:54 AM
» Replies: 2
» Views: 397
|
D'ont read a file
Forum: Standard Small Basic
Last Post: WhTurner
04-12-2026, 03:39 PM
» Replies: 1
» Views: 132
|
close a file
Forum: Standard Small Basic
Last Post: francesco
04-12-2026, 08:59 AM
» Replies: 2
» Views: 211
|
random in a array
Forum: Standard Small Basic
Last Post: francesco
04-05-2026, 06:40 PM
» Replies: 4
» Views: 393
|
Sqlite Version
Forum: Extensions
Last Post: Lester
03-24-2026, 06:58 PM
» Replies: 3
» Views: 322
|
Small Basic Explorer with...
Forum: Challenges
Last Post: martmen
03-17-2026, 03:48 PM
» Replies: 0
» Views: 154
|
Example Program
Forum: Extensions
Last Post: martmen
03-13-2026, 04:15 PM
» Replies: 0
» Views: 160
|
BASIC Jam 7 is in progres...
Forum: Discussion
Last Post: eddylo
03-11-2026, 12:40 AM
» Replies: 3
» Views: 437
|
LitDev extension
Forum: Extensions
Last Post: martmen
02-24-2026, 07:20 AM
» Replies: 2
» Views: 373
|
|
|
| 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
|
|
|
| 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
|
|
|
|