Search found 59 matches

by dbickin
Sep 04, 2023 2:36
Forum: Libraries & Headers
Topic: Library, Project, Example Code Archive
Replies: 7
Views: 2100

Re: Library, Project, Example Code Archive

As a semi-pro, intermediate kind of programmer, I would find an archive very useful. It is really frustrating chasing down a library in the forum, only to find the link is now dead.

David
by dbickin
Aug 05, 2023 2:39
Forum: Linux
Topic: reading standard input
Replies: 3
Views: 1676

Re: reading standard input

Basically, use "Open Cons" and then you are allowed to use the EOF function Thanks, that is the obvious thing I missed. Actually I thought for sure I checked out Open Cons and what I read made me think it wouldn't work, but I have no idea what I had read that made me think that. I need to...
by dbickin
Aug 03, 2023 5:51
Forum: Linux
Topic: reading standard input
Replies: 3
Views: 1676

reading standard input

I should know this, but I am having a very senior moment here.... I want to run some commands prog1 | fb-prog | prog3 That is, I want my freebasic program to read the output of prog1, process the data line by line, then write the results out so prog3 can process it. I can do a do loop of line input ...
by dbickin
Jun 29, 2023 16:42
Forum: Windows
Topic: PipeToString for PowerBASIC
Replies: 46
Views: 5848

Re: PipeToString for PowerBASIC

I wrote an elementary dll using 'As BSTR Export' and that worked fine. It seems to me that 'dummy += tmp + Chr(10)' is the issue but I cannot see how at the moment. Have you examined the bytes returned in the string? Are the chr(10) still there as expected? Does PowerBasic expect lines to end with ...
by dbickin
Sep 22, 2022 14:56
Forum: DOS
Topic: Let's develop OpenWinDOS
Replies: 54
Views: 12246

Re: Let's develop OpenWinDOS

I downloaded OpenWinDos and tried to compile main.bas, and I got a bunch of errors. The errors were like: hWindow.bi(45) error 18: Element not defined, hName But it looks like hName is defined in hControl. All the fields of hControl were listed as "elements not defined." I am using fbc ver...
by dbickin
May 29, 2021 15:14
Forum: General
Topic: Porting Freebasic fltk-c application to web based
Replies: 6
Views: 1229

Re: Porting Freebasic fltk-c application to web based

@Julcar First of all, you won't need any fltk-c library, Thanks. The role of the GUI is to aide in placement of information and reading writing data to those places. Sounds like that is all manually done in html. At this point, I have only ever written html to dump info out, but not allowed the user...
by dbickin
May 28, 2021 16:48
Forum: General
Topic: Porting Freebasic fltk-c application to web based
Replies: 6
Views: 1229

Porting Freebasic fltk-c application to web based

Okay, this may be off-topic, but I have written a few small applications in freebasic, using fltk-c to create a user interface to view and modify data in a database. I would like to change these programs so that they run on a web server in a browser. Currently, I have the programs on a usb stick, co...
by dbickin
Jul 10, 2020 14:43
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 7446

Re: Embedding a Spreadsheet

an old post, may be useful https://ewbi.blogs.com/develops/popular/excelformulaparsing.html Thanks. I ended up realizing I needed to figure out exactly what "minimally functional" spreadsheet would need to do. Most of the Gui toolkits could handle displaying and entering data in a grid. A...
by dbickin
Jul 06, 2020 1:47
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 7446

Re: Embedding a Spreadsheet

Thanks TJF. I finally had time to try to understand your code. I read the code, but haven't tried to compile it, or test it. I think I have convinced myself that it does allow for COS(A1). (ie the cosine of the value in cell A1) But I am guessing for simplicity you omitted processing any functions t...
by dbickin
Jul 02, 2020 3:45
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 7446

Re: Embedding a Spreadsheet

This looks like exactly what I want. This Pascal solution implements a complex custom type for the RPN stack, which makes the solver complicated. IMHO it's better to operate with two stacks (value/RPN). This answer confuses me.... not too hard to do. I suspect because you are answering a question I...
by dbickin
Jul 02, 2020 3:27
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 7446

Re: Embedding a Spreadsheet

oyster wrote:I suggest to focus on your own application, and embed JavaScript code in application
Would that JS run in client in a embedded html viewer in my code, or would a server have to be set up?

David
by dbickin
Jun 30, 2020 22:07
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 7446

Re: Embedding a Spreadsheet

perhaps this might be of some value https://wiki.freepascal.org/RPN_Formulas_in_FPSpreadsheet This looks like exactly what I want. Assuming you can put two sWorkSheetGrid controls on one form, with other non-spreadsheet related controls in the same form. Is there an "easy" way to link the...
by dbickin
Jun 30, 2020 2:50
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 7446

Re: Embedding a Spreadsheet

Wow! Thanks. Well, at least is DOES handle cell references in its expression parser. Unrelated, I was checking out the packages in a Linux distro, and saw "Gnu spreadsheet Widget" Excitedly I went to its website, only to see "Documentation is currently not available." Undeterred,...
by dbickin
Jun 30, 2020 1:13
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 7446

Re: Embedding a Spreadsheet

I agree. Unfortunately, all of the FB parsers I have come across have made the tacit assumption that the formula is going to return a number and that is arguments are going to be numbers. Not true for my problem domain. Actually, I don't think I've seen any that can have the argument of a function, ...
by dbickin
Jun 28, 2020 15:22
Forum: General
Topic: Embedding a Spreadsheet
Replies: 35
Views: 7446

Re: Embedding a Spreadsheet

it may be better to do all evaluation on the LUA side, just passing the pointer of the table and the formular to evaluate. I don't know LUA. Is parsing B1 to a value from the table something that LUA simply knows how to do, or is that something I would have to code? The IUPCells sample broke "...