Recent Posts

Pages: [1] 2 3
1
Apps for study and entertainment / Archimedes spiral
« Last post by eleusmario on March 12, 2018, 06:29:15 AM »
The archimedes spiral is applied in the construction of various mechanisms, such as scroll compressors, fans, centrifugal pumps, and so on. This is a rather simple and interesting example of fractal.

Code: [Select]
Var T Decimal, A Decimal, R Decimal, Xs Decimal, Ys Decimal
Var X0 Decimal, Y0 Decimal, X1 Decimal, Y1 Decimal

Window Res = 150, 250

T = 0.7 'starting point of spiral
A = 0.03 'increment size - spiral trail width
Xs = 125; Ys = 75
X0 = 0; Y0 = 0 'start point of line

While 1 = 1
  R = A * T
 
  X1 = R * Cos(T) * 50
  Y1 = R * Sin(T) * 50
  Straight Ys + Y0, Xs + X0, Ys + Y1, Xs + X1, Black
  X0 = X1; Y0 = Y1
  T = T + A
  Wait Events
Loop
2
Discussions about Logic Basic / Re: Alguém teria um exemplo de banco de dados?
« Last post by eleusmario on February 15, 2018, 05:42:56 AM »
See the Logic Basic example programs folder (C: \ Logic Basic Code), see the Customers and Rep Folders. Also see the sample program for download at http://www.logicbasic.net/download/AccessDatebook.zip.
3
Discussions about Logic Basic / Alguém teria um exemplo de banco de dados?
« Last post by lb fan on January 25, 2018, 11:42:17 AM »
Olá,
Gostaria de ver um exemplo funcional de como acessar um banco de dados em access e nativo do lb.
desde já agradeço
4
News and announcements / In progress the ebook "Logic Basic - The Bible"
« Last post by eleusmario on December 15, 2017, 04:31:10 AM »
Soon the ebook titled "Logic Basic - The Bible" will be completed, explaining in detail all aspects of the language, teaching the development of practical applications, and including complete documentation of all commands and functions.
5
Discussions about Logic Basic / Re: Images and Pictures
« Last post by eleusmario on December 07, 2017, 05:32:53 AM »
Use the Resize method to decrease or enlarge the image to any dimension, for example:

Image Test, "Test.jpg"
Image Test.Lin = 0
Image Test.Col = 0
Image Test.Height = 15
Image Test.Width = 30
Image Test.Resize, 15, 30

This method does not appear in LB Help, but I will update it soon.

6
Discussions about Logic Basic / Images and Pictures
« Last post by Randal on December 06, 2017, 12:29:00 PM »
I'm having a hard time understanding how to make these work. My computer resolution is 3840x2160 and I have an image that is 770x1140. One would think that it would fit easily but it doesn't. I've set the window size to 77x102 which fills up the screen so I take it these are based on a mono font character rather than pixels.

I'm trying an experiment where there is a database of names and addresses and a picture of the person scaled to fit in the upper right corner and can't seem to make anything work. The image (no matter what it is) takes up the majority of the desktop.

What could I be doing wrong?
7
Discussions about Logic Basic / Re: Why Doesn't This Work?
« Last post by Randal on December 04, 2017, 09:03:55 AM »
You are zipping through these quickly. Thanks. :)
8
Discussions about Logic Basic / Re: Why Doesn't This Work?
« Last post by eleusmario on December 01, 2017, 04:55:40 AM »
It's a bug. I'll make the correction then I'll announce here. But if you put a button before testing the value, the program works correctly:

Currency txtOwed, 3, 50, 10
Currency txtOwed.Value = -3850.00
Currency txtOwed.places = 2

Button OK, 5, 50
Wait ClickButton

If txtOwed.Value < 0
  Currency txtOwed.ForeColor = Red
Else
  Currency txtOwed.ForeColor = DarkGreen
EndIf
9
Discussions about Logic Basic / Re: Mask
« Last post by eleusmario on December 01, 2017, 04:35:33 AM »
Thanks for the suggestions, I have already noted them in my agenda and will soon be providing these changes in the component.
10
Apps for study and entertainment / Re: Moves a point linearly in any direction
« Last post by eleusmario on December 01, 2017, 04:30:05 AM »
Hello Randal,

Yes, I plan to create a complete game in Logic Basic, perhaps with the collaboration of other LB users, I will soon be posting the code in this section.
Pages: [1] 2 3