Search found 143 matches

by kibernetik
Fri Oct 16, 2020 5:49 pm
Forum: Support topics
Topic: print using
Replies: 2
Views: 13

Re: print using

Yes, but it is done a bit differently.
Take a look at STR TEXT function from "Strings" section.
by kibernetik
Sat Aug 15, 2020 7:21 pm
Forum: Support topics
Topic: Getting Started
Replies: 1
Views: 53

Re: Getting Started

BestBASIC has example programs in the "Examples" folder which you can try.

Also you can find any literature to use Minimal BASIC programming language and use this knowledge to program BestBASIC.
by kibernetik
Sun Jul 19, 2020 4:11 am
Forum: Finished programs
Topic: Hofstadter Function
Replies: 2
Views: 686

Re: Hofstadter Function

Why argument cannot be greater than 41?
Do you get any errors when running with argument > 41?
by kibernetik
Sun Jul 19, 2020 4:07 am
Forum: Misc
Topic: First attempt at OOP
Replies: 2
Views: 615

Re: First attempt at OOP

Very nice code. For your information, in BestBASIC arrays can be re-defined to change their size dynamically: dim m(1) = "one","two" s = sizeof m,1 for i = 0 to s-1 print m(i) next print dim m(3) m(2) = "three" m(3) = "four" s = sizeof m,1 for i = 0 to s-1 print m(i) next Outputs: one two one two th...
by kibernetik
Fri Apr 24, 2020 11:47 am
Forum: Release announcements
Topic: Version 1.6.3
Replies: 1
Views: 664

Version 1.6.3

The critical bug which can affect the program flow is fixed:

viewtopic.php?f=5&t=115
by kibernetik
Fri Apr 24, 2020 6:06 am
Forum: Support topics
Topic: Sorting
Replies: 2
Views: 378

Re: Sorting

The example: dim m(3 1) = "eight" "three" "six" "one",8 3 6 1 option tab 6 print "Table:" print for row=0 to 3 for col=0 to 1 print m(row col), next print next print 'sort table using 2nd column dim sv() sv = sort up m,1 print "1st column sorted up by 2nd column:" print for i=0 to 3 row = sv(i) prin...
by kibernetik
Mon Apr 06, 2020 4:59 pm
Forum: Finished programs
Topic: Gamma inspection
Replies: 12
Views: 2532

Re: Gamma inspection

I think that labels width and height should be set correctly. And of course the same font should be used both for string size measurement and for label text output.
by kibernetik
Mon Apr 06, 2020 8:16 am
Forum: Finished programs
Topic: Gamma inspection
Replies: 12
Views: 2532

Re: Gamma inspection

Code: Select all

t = "My text"

draw font "Arial" 10
print strwidth t

draw font 20
print strwidth t

draw font 30
print strwidth t
outputs:

Code: Select all

 31.4111 
 62.8223 
 94.2334 
by kibernetik
Mon Apr 06, 2020 8:04 am
Forum: Finished programs
Topic: Gamma inspection
Replies: 12
Views: 2532

Re: Gamma inspection

BestBASIC returns string size, measured in current font. This string is expected to be a single-line string.
by kibernetik
Sun Apr 05, 2020 11:27 am
Forum: Finished programs
Topic: Gamma inspection
Replies: 12
Views: 2532

Re: Gamma inspection

I was very interested in this program. Many thanks for it. But I never see the text 'Grey = ...' on my screen. Only 'White = ...'. Must I change something? I use an iMac with macOS 10.14.6. Many thanks in advance... Probably there are some errors in the program when setting labels sizes, because ev...