Search found 642 matches

by owen
Mon Sep 23, 2019 2:56 pm
Forum: FBS (freeBASIC script)
Topic: time out and abort
Replies: 1
Views: 59

Re: time out and abort

In the event of an error trying to figure out if the error is caused by The Script or The Interpreter... Well here's what you can do. First verify that you can compile your script with the free basic compiler. If it compiles without errors then more than likely the error is caused by The Interpreter...
by owen
Mon Sep 23, 2019 5:38 am
Forum: FBS (freeBASIC script)
Topic: time out and abort
Replies: 1
Views: 59

time out and abort

i added a run time limit of 3 seconds and an abort on error feature the interpreter will exit if it takes to longer then 3 seconds in do loops and for next loops. in order to allow the interpreter to run longer then 3 seconds adjust the value of the time_out variable in the init sub routine. if ther...
by owen
Mon Sep 23, 2019 4:49 am
Forum: Daily progress
Topic: 1 year
Replies: 1
Views: 93

Re: 1 year

My hope for FbcadcamPH is that the company be given to the kids.
by owen
Mon Sep 23, 2019 4:43 am
Forum: FBS (freeBASIC script)
Topic: File i/o
Replies: 1
Views: 83

Re: File i/o

Files can be opened using access modes:
Input
Output
Append
Binary

Note: random access mode is not available as of this post.
by owen
Sat Sep 21, 2019 3:53 am
Forum: FBS (freeBASIC script)
Topic: What is fbs
Replies: 1
Views: 128

Re: What is fbs

Writing fbcadcam_macro (now called fbs {my own freeBASIC script interpreter} ) has been and still is quite the adventure. Originally the interpreter was written for fbcadcam in order to draw programmatically in fbcadcam similar to the idea of autocad's LISP feature to draw programmatically in AutoCA...
by owen
Fri Sep 20, 2019 5:31 am
Forum: Daily progress
Topic: 1 year
Replies: 1
Views: 93

1 year

i ran out of funds to keep the Philippines project going and they haven't been able to generate enough revenue to keep it going on their own so it might get kinda quite in here for awhile.
if anyone would like to donate funds please contact me at 4076558537 opreese at gmail
by owen
Thu Sep 19, 2019 7:42 pm
Forum: FBS (freeBASIC script)
Topic: File i/o
Replies: 1
Views: 83

File i/o

I added file i/o functions:
Open
Close
Eof
Lof
Freefile
Input #
Line Input #
Print #
Get #
Put #

For example:
Dim a string s
Dim as integer i
Open 'file_name.txt" for input as #1
Do While Not Eof(1)
Input #1, i, s
Print i, s
Loop
Close #1
by owen
Sat Sep 07, 2019 2:28 pm
Forum: FBS (freeBASIC script)
Topic: ByVal ByRef
Replies: 0
Views: 75

ByVal ByRef

Fbs aka fbcadcam-macro passes all variables including arrays ByVal.

There is no need to specify ByVal in a sub routine or function declaration. In fact I think doing that will cause it to crash.
by owen
Fri Sep 06, 2019 1:06 pm
Forum: FBS (freeBASIC script)
Topic: update 9-5-19
Replies: 1
Views: 133

Re: update 9-5-19

this is a test for sub routines and functions http://fbcadcam.org/fbs/test_subs_functs.fbs test_subs_functs.fbs #!/usr/bin/perl print "Content-type: text/html\n\n"; system("./fbs test_subs_functs.bas"); test_subs_functs.bas Declare Sub init(document_title As String) Declare Function build_html(docum...
by owen
Thu Sep 05, 2019 5:11 am
Forum: FBS (freeBASIC script)
Topic: update 9-5-19
Replies: 1
Views: 133

update 9-5-19

I compile fbs.bas using linux (ubuntu) and uploaded it to the server using filezilla. I make sure i use binary transfer type when i upload the binary file to the server. I then set the permissions for it to 755 With the interpreter on the server all i have to do is upload two files in order to run s...
by owen
Tue Aug 27, 2019 1:45 pm
Forum: freeBASIC code examples
Topic: MyCad
Replies: 2
Views: 149

Re: MyCad

First we created some simple buttons then we started working on the drawing area functions like drawing lines and circles. Last thing we were doing was working on screen flipping. The code that creates the buttons is kind of cool because you could set the button spacing and button padding variables ...
by owen
Sun Aug 25, 2019 2:18 am
Forum: Daily progress
Topic: AUG. 16, 2019
Replies: 1
Views: 101

Re: AUG. 16, 2019

it will take a long time to do somethings with my boss regarding a trucking app. problem is my boss don't have time to entertain the idea at the moment. he is still set on using excel for the time. i have tried several times to talk with my boss and some of his staff about the idea but they are non ...
by owen
Sat Aug 24, 2019 7:26 am
Forum: FBS (freeBASIC script)
Topic: Download FBS
Replies: 0
Views: 106

Download FBS

FBS files are available at:
http://fbcadcam.org/fbs/fbs.zip
by owen
Sat Aug 24, 2019 7:19 am
Forum: FBS (freeBASIC script)
Topic: What is fbs
Replies: 1
Views: 128

What is fbs

FBS is fbcadcam macro WITHOUT fbcadcam functions. It is a very basic script engine with NEAR FB syntax. note: fbs only understands a small portion of the freeBASIC language. Currently i am busy modifying fbs in order to use it as my own server side script engine. see this post https://www.fbcadcam.n...
by owen
Wed Aug 14, 2019 9:53 am
Forum: Community Discussion
Topic: a solution for fbcadm-macro arrays
Replies: 0
Views: 91

a solution for fbcadm-macro arrays

Code: Select all

type a
	b(any) as Integer
	declare sub rp(byval n as integer)
End Type

sub a.rp(byval n as integer)
	redim preserve b(n)
End Sub

redim c(0) as a
c(0).rp(10)
c(0).b(0)=1
print c(0).b(0)

redim preserve c(1)
c(1).rp(10)
c(1).b(0)=2
print c(1).b(0)

sleep
by owen
Wed Jul 24, 2019 11:36 am
Forum: Daily progress
Topic: JULY. 19, 2019
Replies: 3
Views: 125

Re: JULY. 19, 2019

nice
by owen
Tue Jul 23, 2019 2:54 am
Forum: Daily progress
Topic: JULY. 19, 2019
Replies: 3
Views: 125

Re: JULY. 19, 2019

I want to see the feed back. Where is it posted?
by owen
Tue Jul 23, 2019 2:52 am
Forum: Daily progress
Topic: JULY. 17, 2019
Replies: 1
Views: 81

Re: JULY. 17, 2019

one of these days i hope to show u guys some 3d stuff for fbcadcam
by owen
Tue Jul 23, 2019 2:48 am
Forum: Daily progress
Topic: JULY. 16, 2019
Replies: 1
Views: 86

Re: JULY. 16, 2019

Awesomeness
by owen
Sat Jul 13, 2019 12:17 pm
Forum: Community Discussion
Topic: Artwork, icons, cad drawings, web sites and your programs
Replies: 4
Views: 136

Re: Artwork, icons, cad drawings, web sites and your programs

If you guys will make a web page / web site for fbcadcamPH I will put a link to it on fbcadcam dot com
by owen
Sat Jul 13, 2019 12:16 pm
Forum: Community Discussion
Topic: Artwork, icons, cad drawings, web sites and your programs
Replies: 4
Views: 136

Re: Artwork, icons, cad drawings, web sites and your programs

FbCadCam. Com / fbcadcamPH web page or web site should be a place where people can go to find out what fbcadcamPH is all about.
by owen
Sat Jul 13, 2019 12:01 pm
Forum: Community Discussion
Topic: Artwork, icons, cad drawings, web sites and your programs
Replies: 4
Views: 136

Artwork, icons, cad drawings, web sites and your programs

Keep making icons. You guys are much better at graphic designers then I am. I hope you will make all kinds of icons which can be used in your future programs that you write for yourselves and your customers. I hope you will make individual websites showing all the things you are making. I hope you w...
by owen
Wed Jul 03, 2019 1:58 pm
Forum: freeBASIC code examples
Topic: font fun
Replies: 28
Views: 628

Re: font fun

delete lines and curves (with undo / redo) Type point2d x As Integer y As Integer End Type Type my_line_udt a As point2d'line start b As point2d'line end As BOOLEAN active End Type Type my_bezier_curve_udt a As point2d 'point A the curve start b As point2d 'point B the curve end c As point2d 'point ...
by owen
Wed Jul 03, 2019 10:33 am
Forum: freeBASIC code examples
Topic: font fun
Replies: 28
Views: 628

Re: font fun

Next thing I should do is add a delete button and code to figure out which line or curve is nearest to the mouse, highlighting each of the lines or Curves as the user moves the mouse around in the drawing area and deleting the line or curve when it is clicked.