Search found 34 matches

by dkr
Jun 13, 2019 13:39
Forum: General
Topic: Squares
Replies: 6589
Views: 373079

Re: Squares

Albert, You are not considering damping in any of these systems. Small displacement usually have linear damping. However, as the displacement increases the damping usually increases non-linearly i.e. increases rapidly. Otherwise, many structural systems would be failing with small inputs at the fund...
by dkr
Apr 05, 2019 17:49
Forum: Documentation
Topic: Where is printexpressionlist defined?
Replies: 7
Views: 381

Re: Where is printexpressionlist defined?

Ok, it appears that printexpressionlist is nearly the same as the expressionlist, but has no formatting controls The below code shows a simple example dim as integer i,j,k dim as string a,b,c i = 1 j = 12 k = 23 a = "1st string" b = "2nd string" c = "&&&&&...
by dkr
Apr 05, 2019 16:35
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated March 25, 2019)
Replies: 516
Views: 57574

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (Updated March 25, 2019)

Mr. Paul Doe,
I really like and use your WinFBE editor. Many thanks.

Should the USING reserved word be changed in color in a print statement

Print #infile, USING fmt; var, var, var, ....

https://ibb.co/Y3bXN1D

No big deal, just thought I would point that out.

Thanks again,
Darren
by dkr
Apr 05, 2019 16:07
Forum: Documentation
Topic: Where is printexpressionlist defined?
Replies: 7
Views: 381

Re: Where is printexpressionlist defined?

My link just goes to the (Print|?) page. However, there is no documentation for a printexpressionlist

Am I looking for something that is obvious to everyone else or does this printexpressionlist exist?

Thanks,
Darren
by dkr
Apr 05, 2019 16:01
Forum: Beginners
Topic: Integers print with leading space?
Replies: 3
Views: 246

Re: Integers print with leading space?

Ok, great. I forgot about the sign

Thanks,
Darren
by dkr
Apr 05, 2019 15:27
Forum: Beginners
Topic: Integers print with leading space?
Replies: 3
Views: 246

Integers print with leading space?

Where o_ncards is dimensioned as an integer, the following code prints the line with a space between the comma (c) and the integer??
I know I can use print using, but why the leading space?

Code: Select all

c = ","
print #out_f, "NUM_CARDS";c;o_ncards


Output:
NUM_CARDS, 5

Thanks,
Darren
by dkr
Apr 05, 2019 15:22
Forum: Documentation
Topic: Where is printexpressionlist defined?
Replies: 7
Views: 381

Where is printexpressionlist defined?

From the (Print/?) Using page: Outputs formatted text to the screen or output device Syntax (Print | ?) [# filenum ,] [ printexpressionlist {,|;} ] Using formatstring ; [ expressionlist [ ; ] ] Parameters filenum The file number of a file or device opened for Output or Append. (Alternatively LPrint ...
by dkr
Mar 08, 2019 19:54
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 209
Views: 30629

Re: FLTK C for FreeBASIC Jan 09, 2017

Found out how to deactivate an item in a menu. To show it, I used Joshy's menu_bar example. in the NewFile callback: t1 = Fl_Menu_FindItemByName(m1,"File/New") 'this gets the menu item pointer Fl_Menu_ItemDeactivate(t1) 'this will deactivate the "File/New" item in the save callba...
by dkr
Mar 08, 2019 14:43
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 209
Views: 30629

Re: FLTK C for FreeBASIC Jan 09, 2017

Hello, Here is most of the code. It is just a beginning. I need to determine if the Test_Menu window can be deactivated, otherwise I might have to re-think how to get the inputs into the program. The basic idea of the program is an easy gui to enter the general information and individual channel con...
by dkr
Mar 07, 2019 22:03
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 209
Views: 30629

Re: FLTK C for FreeBASIC Jan 09, 2017

Hello, Another question on using the FLTK library. I am trying to use the Fl_Menu_NewBar widget. It will look something like the image in the link below. https://imgur.com/9NA8YKh Clicking on the menu items brings up another widget window from the callback subroutines. However if I go back to the ab...
by dkr
Feb 27, 2019 12:55
Forum: Beginners
Topic: Basic understanding of FLTK
Replies: 4
Views: 452

Re: Basic understanding of FLTK

Ok, Thank you. I will add pointers for each tab.

Darren
by dkr
Feb 26, 2019 18:44
Forum: Beginners
Topic: Basic understanding of FLTK
Replies: 4
Views: 452

Re: Basic understanding of FLTK

I think Fl_ButtonSetOnly(ac(i)) is correct for both tabs. It sets the default to AC coupling for all channels. After looking more at it today, I think the issue is the ac() and dc() and chc() pointers are somehow fixed to the last tab initialization. I probably will have to make a separate Button_Cl...
by dkr
Feb 25, 2019 23:33
Forum: Beginners
Topic: Basic understanding of FLTK
Replies: 4
Views: 452

Basic understanding of FLTK

Hello, I am trying to write a routine to setup a data acquisition system using the FLTK gui front end. The following code is just a beginning effort. When running the program, Card 3 tab responds correctly in giving the correct outputs for AC/DC and input level. However, Card 1 tab now does not work...
by dkr
Jun 21, 2018 18:12
Forum: Beginners
Topic: Printing
Replies: 11
Views: 1111

Re: Printing

If you are using Windows, you might consider Paul Squires' WinXPrint.bi routines. I downloaded it from this forum.

Darren
by dkr
Mar 13, 2018 21:58
Forum: Beginners
Topic: "date" returns wrong format
Replies: 8
Views: 590

Re: "date" returns wrong format

The documentation shows the output is in the format mm-dd-yyyy

DATE DOCUMENTATION
Returns the current system date as a string

Syntax
Declare Function Date ( ) As String

Usage
result = Date

Return Value
Returns the current system date, in the format mm-dd-yyyy

Go to advanced search