Search found 726 matches

by grindstone
Jun 04, 2015 19:43
Forum: General
Topic: The WORD() function?
Replies: 10
Views: 1014

Re: The WORD() function?

Hello datwill310! If you want to generate a list of expressions representing a row of consecutive numbers there's even an easier way to do this: Enum black = 0 blue green aqua red purple yellow white grey light_blue light_green light_aqua light_red light_purple light_yellow bright_white End Enum 'fo...
by grindstone
Jun 03, 2015 20:33
Forum: Documentation
Topic: CIRCLE unclear?
Replies: 10
Views: 1971

Re: CIRCLE unclear?

I don't think implementing a feature of an automatically opened graphics window would be a good idea, for several rasons: 1) How should the compiler know which size of the window would be suitable for your purposes? 2) If the size of the window doesn't match your needs you'll have a problem, for the...
by grindstone
Jun 03, 2015 19:25
Forum: Beginners
Topic: Do fb compiler know join multiple parts of a file?
Replies: 4
Views: 564

Re: Do fb compiler know join multiple parts of a file?

Invaluable tip. I'm pleased that you like it, even so I would not recommend to do it this way, for it's much too inconvenient. It's by far easier to write a "master"-file like ''File JobMaster.bas #Include "SomeJobpart3.bas" #Include "SomeJobpart1.bas" #Include "S...
by grindstone
Jun 03, 2015 0:04
Forum: Documentation
Topic: CIRCLE unclear?
Replies: 10
Views: 1971

Re: CIRCLE unclear?

Hello Tourist Trap!

Using the Circle- (or any other graphics-) command in the console is definitely NOT possible, because the console is a pure text - mode window.

Regards
grindstone
by grindstone
Jun 02, 2015 23:50
Forum: Beginners
Topic: Do fb compiler know join multiple parts of a file?
Replies: 4
Views: 564

Re: Do fb compiler know join multiple parts of a file?

Hello Tourist Trap! It's quite simple. First change your examples to: ''File SomeJobpart1.bas Dim inputVariable as object Declare Sub InputProcedure() '' Sub InputProcedure() ''Get the inputs End Sub ''File SomeJobpart2.bas Dim displayVariable as object Declare Sub DisplayProcedure() '' Sub DisplayP...
by grindstone
Jun 01, 2015 15:20
Forum: General
Topic: Conflict between local/private String-name and TYPE def
Replies: 19
Views: 1967

Re: Conflict between local/private String-name and TYPE def

I agree with Boris the Old. Using unique names would cause the least problems.

Regards
grindstone
by grindstone
May 24, 2015 11:06
Forum: Libraries
Topic: How to transcode between ANSI anc UTF?
Replies: 3
Views: 1194

Re: How to transcode between ANSI anc UTF?

Here you are: #Include "utf_conv.bi" Dim As String source, destination Dim As ZString*20 dest Dim As WString*20 wdest Dim As Integer numberOfBytes Dim As Any Ptr returnValue source = "abc" Print "source = ";source destination = String(10,".") 'conversion to UT...
by grindstone
May 23, 2015 9:46
Forum: Libraries
Topic: How to transcode between ANSI anc UTF?
Replies: 3
Views: 1194

Re: How to transcode between ANSI anc UTF?

Hi, see this little demo: #Include "utf_conv.bi" Dim As String source, destination Dim As Integer numberOfBytes Dim As Any Ptr returnValue Print "UTF_ENCOD_ASCII";UTF_ENCOD_ASCII Print "UTF_ENCOD_UTF8 ";UTF_ENCOD_UTF8 Print "UTF_ENCOD_UTF16";UTF_ENCOD_UTF16 Pr...
by grindstone
May 20, 2015 13:07
Forum: Hardware Interfaces / Communication
Topic: Simplest, multiplatform way to do network communication?
Replies: 4
Views: 1873

Re: Simplest, multiplatform way to do network communication?

Hi,

maybe try TSNE. It's probably a bit oversized for your purposes, but it will surely match your needs.

Greetings
grindstone

PS: If you need help with translation, let me know.
by grindstone
May 17, 2015 23:05
Forum: Beginners
Topic: Using databases mysql/sqllite
Replies: 5
Views: 855

Re: Using databases mysql/sqllite

The files are surely included in FB 1.02.0. Download it and copy the missing files to your actual FB \inc\mysql\ - folder.
by grindstone
May 17, 2015 8:09
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 17016

Re: Dim Byref syntax

Thanks, I think I've got it now. But that means (if I understood it right), there can only be Dim'd a reference to a variable that already exists. In this case it's needless to mention the type, for it's already defined. I suggest the syntax should be similar to the 'SizeOf' statement, something lik...
by grindstone
May 16, 2015 23:58
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 17016

Re: Dim Byref syntax

Yes, I see, the effect is that i and ri will always return the same value, no matter which of them you change. It surely works fine, but I can't see any practical benefit. In the bottom line it only means that the same variable can be accessed by two (or more) different names.
by grindstone
May 16, 2015 21:03
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 17016

Re: Dim Byref syntax

Hello,

I don't understand which effect this should have. Would

Code: Select all

dim i as integer
dim byref ri as integer = i  '' ri is an "alias" for i

be the same as

Code: Select all

dim i as integer
dim ri as integer ptr = @i
?

Greetings
grindstone
by grindstone
May 16, 2015 10:24
Forum: Beginners
Topic: Can I change default initial values?
Replies: 12
Views: 1295

Re: Can I change default initial values?

In my opinion such a feature would cause more problems than it solves. But if you really want to utilize it, you could write a code manipulator which scans the source code for DIM - statements and modyfies them by inserting an initial value of your choice to every variable. Maybe you could even pipe...

Go to advanced search