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: 234
» Latest member: Dreamhasy
» Forum threads: 139
» Forum posts: 1,599

Full Statistics

Online Users
There are currently 26 online users.
» 0 Member(s) | 24 Guest(s)
Google, Bing

Latest Threads
GraphicsWindow.LastKey
Forum: Standard Small Basic
Last Post: litdev
01-18-2025, 01:41 PM
» Replies: 16
» Views: 209
Challenge 11 - Hourglass
Forum: Challenges
Last Post: AbsoluteBeginner
01-17-2025, 08:56 AM
» Replies: 8
» Views: 212
Threading
Forum: Extensions
Last Post: jrmrhrb00
01-13-2025, 07:51 PM
» Replies: 10
» Views: 279
AI learns Small Basic
Forum: Discussion
Last Post: AbsoluteBeginner
01-09-2025, 09:26 AM
» Replies: 7
» Views: 481
Spam
Forum: Discussion
Last Post: litdev
01-08-2025, 01:06 PM
» Replies: 2
» Views: 217
LDDialogs.SetStartupPosit...
Forum: Extensions
Last Post: litdev
01-08-2025, 01:01 PM
» Replies: 4
» Views: 130
Will this forum be beauti...
Forum: Discussion
Last Post: litdev
12-28-2024, 06:59 PM
» Replies: 3
» Views: 158
Welcome
Forum: Standard Small Basic
Last Post: litdev
12-26-2024, 12:34 PM
» Replies: 16
» Views: 2,280
SB.js
Forum: Discussion
Last Post: litdev
12-16-2024, 07:56 AM
» Replies: 6
» Views: 484
Small Basic Program Conve...
Forum: Discussion
Last Post: AbsoluteBeginner
12-11-2024, 01:23 PM
» Replies: 9
» Views: 398

 
  GraphicsWindow.LastKey
Posted by: jrmrhrb00 - 01-15-2025, 01:37 PM - Forum: Standard Small Basic - Replies (16)

This is a little confusing, but here goes!

I have a program that I want to rerun for a second or more times. So, I clear the GraphicsWindow, and tell it to rerun by using a button. The problem I am having is: in the first run I use this:

While key <> "Return"
  key = GraphicsWindow.Lastkey
EndWhile

This is to hold the program until I hit the return key. That works just fine. Then steps in "GraphicsWindow.LastKey" That function is read only. The problem is there is no way to reset it in standard "Small Basic" and it remembers the key was used in the first round of the program. So, on the second round the program zips right through the while loop. To work properly GraphicsWindow.LastKey needs to reset for the second or more rounds of the program. I looked in the LitDev Extension. Didn't see any way to reset it.

Any suggestions of how to do it?

Maybe, LitDev could add it to the extension?

JR

Print this item

  Threading
Posted by: jrmrhrb00 - 01-09-2025, 03:27 PM - Forum: Extensions - Replies (10)

I think that it is interesting that with the wonderful LitDev Extension that there isn't at least one function for threading. Maybe, I missed it if there is, but I looked and I haven't found anything. LitDev did write an excellent article about threading and how to avoid its pitfalls. I suggest a new function for the LitDev extension called (LDThreading). What it would consist of I'm not sure, but I am sure the best person to create it would be LitDev.

JR

Print this item

  LDDialogs.SetStartupPosition
Posted by: Yumda - 01-06-2025, 02:33 AM - Forum: Extensions - Replies (4)

Hi there:

does lddialogs.setstartupposition work for lddialogs.inputbox?  

I tried to set it like this LDDialogs.SetStartupPosition(373,210,1) and then called lddialogs.inputbox,

eg

LDDialogs.SetStartupPosition(373,210,1)
dialog1 = lddialogs.inputbox("","")


but the input box position is not set in relation to the graphicwindows... any ideas?

or does the setposition option not apply to the input box?

Regards

Print this item

  Will this forum be beautified in 2025?
Posted by: eddylo - 12-27-2024, 04:34 PM - Forum: Discussion - Replies (3)

This forum is nice. Sure. I have learned a lot of knowledge by reading the posts here.

If the forum is rationally beautified, maybe the number of frequent visitors will increase significantly. The forum will be more attractive and more active!

Print this item

  Challenge 11 - Hourglass
Posted by: litdev - 12-19-2024, 11:21 AM - Forum: Challenges - Replies (8)

Use standard Small Basic to make an animation of an hourglass (egg timer). 

Something on the lines of this:

https://cdn.dribbble.com/users/11609495/...rglass.gif

Print this item

  Spam
Posted by: litdev - 12-09-2024, 11:43 PM - Forum: Discussion - Replies (2)

Many thanks to moderators who ban and delete spam.

Print this item

  Small Basic Program Conversion to C#
Posted by: jrmrhrb00 - 12-09-2024, 01:05 PM - Forum: Discussion - Replies (9)

What can a person do when they have a small basic program that they want to convert to c# and the conversion comes up with a bunch of error messages that you don't understand that originates from visual studio. The program runs fine in small basic. The problems occur after conversion. This is an issue with visual studio. It generally gives potential fixes that never work and the explanation of what is wrong is way beyond my comprehension.

Most of the time I end up just leaving the running program in small basic and give up on converting to c#. I know that is not the ideal way of doing it, but what else can a person do?

JR

Print this item

  Getting this error message on extension manager
Posted by: Yumda - 12-08-2024, 09:30 AM - Forum: Extensions - Replies (4)

Hi there:

While updating SB prime extension using the extension manager I have been getting the message and only happen when I try to update litdev extension.

Does anyone has any ideas?

error message: 

"Extension version incorrect: 1.2.29.11 (Database), 1.2.29.12 (Downloaded)

Do you wish to continue?"

upon selecting yes, nothing happened.

Would welcome any input.

Regards

Print this item

  Missing .jpg files
Posted by: jrmrhrb00 - 12-07-2024, 01:08 PM - Forum: Discussion - Replies (2)

In the article for how to Graduate to c#. It mentions 3 .jpg files. I can't find them.

Stones.jpg
Walls.jpg
Water.jpg

I assume they're on the forum somewhere, but I don't have a clue as to where.

JR

In m

Print this item

  Crowd marketing - Could you help figure this out?
Posted by: NatashaRostovskaya - 12-07-2024, 10:38 AM - Forum: Discussion - Replies (1)

Sorry for being a bit off-topic. Can you clarify? How does crowd marketing work, and can you provide an example? Also, is there any useful software for this?

Print this item