Search found 56 matches
- Jul 02, 2017 17:27
- Forum: Beginners
- Topic: Word Tools
- Replies: 0
- Views: 954
Word Tools
With Width tip for font size, I can see what I am doing! :) (Another go round with leftl and rightl as integer variables, FB did not like.) ;( OK since this is my first major effort, let me know what you think. 'Wrd tools.bas for FB (B+=MGA) 2017-07-02 ' Translating from work in JB and SmallBASIC, a...
- Jul 02, 2017 12:58
- Forum: Beginners
- Topic: Font size? - output screen
- Replies: 5
- Views: 1513
Re: Font size? - output screen
' word test.bas 2017-07-01 'frickin word is not good Function Word(s As String, n As Integer) As String Word = s End Function Dim As String ts Dim As String test = "Testing 1 2 3 4 ..." ts = Word(test, 2) ? ts Sleep I have nothing loaded in FbEdit except the above code file (a stripped do...
- Jul 02, 2017 3:04
- Forum: Beginners
- Topic: Font size? - output screen
- Replies: 5
- Views: 1513
Font size? - output screen
I had a rough night going round and round with a function named Word. Apparently FB doesn't like it but Wrd worked.
Is there a way to change the font size in the output screen?
Is there a way to change the font size in the output screen?
Re: EVAL
Thanks Owen, dang how'd I miss that? There was a question about running variables with EVAL. For me, I plugged their values into the expression string before running it through the EVAL function as part of the evaluation string prep routine. There was mention of limiting EVAL, yeah forget about stri...
- Jun 28, 2017 17:44
- Forum: Libraries & Headers
- Topic: Library for drawing turtle type (Logo turtle)
- Replies: 106
- Views: 25267
Re: Library for drawing turtle type (Logo turtle)
Hi Ircvs, Just picked up your link from SdlBasic, saw a couple videos and a host more lined up... WOW! I did a Turtle essence thing at Retrogamecoding, a minimalist kind of thing. Curious what your thoughts of it would be. Anyway, I am new fan! Append: Oh man! I was modifying your code (under the ot...
Re: EVAL
Another easy to understand EVAL() expression solver in FreeBASIC Good! thanks, I am starting to feel like I am back at school being piled with several books to read! Apparently I'm becoming a student of EVAL, I have worked a few versions at JB myself and was hoping for short way around. But as St_W...
Re: EVAL
Not sure if it is relevant to your question but I once had to try and work out a simple expression evaluator. http://www.freebasic.net/forum/viewtopic.php?f=8&t=23524&hilit=eval It was only for simple arithmetic although I don't see why transcendental functions couldn't be added. . Spot on!...
Re: EVAL
I can see that there would be all sorts of variable type declarations that would make this extremely difficult for FB. I think that, since math. can easily be done in FB, such an evaluator, makes not a lot of sense. Apart from the fact, that this would really be a speed brake (compared to straigt m...
Re: EVAL
Dodicat, thanks I think you are onto it. I like seeing Boolean operators included. I have worked math evaluator with nested parenthesis using recursion but I left out Booleans (and strings of course!). I will study.
Re: EVAL
I would like very much to see FB version / method to do EVAL In order to do that, we'd first need to have a description of the EVAL (command: function? / sub? / operator? and, input/output variable types etc.) ... With other words: what is EVAL "doing"? (in SmallBASIC) The EVAL function t...
EVAL
I would like very much to see FB version / method to do EVAL Here is how it's done in SmallBASIC (but it is only an Interpreter): 'quick calculator.bas SmallBASIC 0.12.2 [B+=MGA] 2016-04-12 'Thanks shian! repeat input "enter string to evaluate ";es if es <> "" then ? eval(es...
- Jun 26, 2017 16:40
- Forum: Beginners
- Topic: How to -PCP in FB
- Replies: 2
- Views: 900
Re: How to -PCP in FB
I am thinking the old BASIC EVAL function (from early 90's that I can no longer find) would produce same results as I found in Wiki description of PCP and what you said about it here: http://www.thejoyfulprogrammer.com/qb64/forum/showthread.php?tid=850&highlight=precedence+climbing+parser&rn...
- Jun 07, 2017 1:10
- Forum: Community Discussion
- Topic: A new section for FreeBasic on The Joyful Programmers forum
- Replies: 28
- Views: 8199
Re: A new section for FreeBasic on The Joyful Programmers forum
I am thinking that owen (and bplus) might also benefit from a proper Split routine (say a program line into an array) and Eval function (able to do strings as well as math) if any are handy. ;-)
I mean Python has this magic word called import that allows just about anything through the door.
I mean Python has this magic word called import that allows just about anything through the door.
- Jun 06, 2017 2:27
- Forum: Community Discussion
- Topic: A new section for FreeBasic on The Joyful Programmers forum
- Replies: 28
- Views: 8199
Re: A new section for FreeBasic on The Joyful Programmers forum
this is what im watching in an effort to implement associative arrays in my entry for the contest using freebasic. https://www.youtube.com/watch?v=UycDHbcWco0&spfreload=10 which is part 1. i am unable to watch part 2 because there is an add at the start and my connection to the internet is too ...
Re: Bowling
Here is a bowling project we did at SmallBASIC. It did not advance far from 2D but we had fun.
We tried it with images but found hand drawn pins could cover more angles (sort of).
https://smallbasic.sourceforge.io/?q=node/1663
We tried it with images but found hand drawn pins could cover more angles (sort of).
https://smallbasic.sourceforge.io/?q=node/1663