Search found 3682 matches

by MrSwiss
Mar 03, 2021 19:19
Forum: Community Discussion
Topic: Moderators, FB community
Replies: 27
Views: 758

Re: Moderators, FB community

Let it be obvious that I disagree with *fxm* and any of the associated statements .... He (she ?) seems to misinterpet too many things at a once (in a livetime) sort of way ... Meaning (clear and straight): I want an explicit apology ... (where I stands for the community at large) (just reverting th...
by MrSwiss
Mar 01, 2021 21:12
Forum: General
Topic: Numeric/String Eval function
Replies: 8
Views: 188

Re: Numeric/String Eval function

The only certain expectation is as described in FB-Manual/Operator precedence.
by MrSwiss
Mar 01, 2021 15:35
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1005

Re: String index doc

fxm wrote:UShort or ULong or ..... for WStrings, depending on platform! <-- metioned already!
The keyword manual should be the reference for the language.

We agree on that but only as long as that doesn't make it "incomprehensible" for most.
by MrSwiss
Mar 01, 2021 15:15
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1005

Re: String index doc

I prefer mine which is more compact and precise IMHO. I definitely don't: its more compact (yes) but far less simple to understand. This is, what should have TOP PRIORITY. Secondly, users must like it (not you or me). in its first form: A UByte containing the ASCII value of a string-character (byre...
by MrSwiss
Mar 01, 2021 14:40
Forum: Documentation
Topic: String index doc
Replies: 45
Views: 1005

Re: String index doc

Maybe it would be better like this? Returns a numeric reference to a character value in a string Anyway, if it's the term 'reference' that bothers you, we can't escape it because it's the appropriate term! I beg to differ, how it is returned is only a secondary priority. Ordinary users want to know...
by MrSwiss
Feb 19, 2021 16:40
Forum: Documentation
Topic: Docs for ASM command
Replies: 13
Views: 218

Re: Docs for ASM command

Seems you don't want to understand the difference between a Assembler (TASM/FASM ...) and FBC's inline ASM ...
by MrSwiss
Feb 19, 2021 16:33
Forum: Documentation
Topic: Docs for ASM command
Replies: 13
Views: 218

Re: Docs for ASM command

Its not wrong "what I've written", as you've just confirmed. Thanks.
by MrSwiss
Feb 19, 2021 16:14
Forum: Documentation
Topic: Docs for ASM command
Replies: 13
Views: 218

Re: Docs for ASM command

Assuming that the return value of your function is DWORD sized, this one works : I think it's vice versa: stating the size of the 0 value: Asm mov [function], DWord Ptr[0] Since the size of [function] is known (typically EAX or RAX, aka: register size). Depends on bitness of FBC used (32 - DWord, 6...
by MrSwiss
Feb 19, 2021 14:14
Forum: Game Dev
Topic: freebasic game "Russian roulette" code review
Replies: 4
Views: 196

Re: freebasic game "Russian roulette" code review

For 32-bit colors I would NOT use Enum (result is: Integer) but rather ULong Const 's. Example below: Const As ULong red = &hFFCF0000, orange = &hFF7F7F00, _ yellow = &hFFFFDF00, green = &hFF00CF3F, _ cyan = &hFF00CFCF, blue = &hFF003FCF, _ purple = &hFFCF00CF, black = &a...
by MrSwiss
Feb 17, 2021 13:48
Forum: Beginners
Topic: Loading Images
Replies: 9
Views: 390

Re: Loading Images

@BasicCoder2, back to "old habits" so soon? Below: removed not really needed Const (NULL) removed all "shared" stuff (using local variables instead) dynamic array (instead of limited, static size) Sub converted to Function (returns image ptr) added some checks (no BMP found ...) ...
by MrSwiss
Feb 15, 2021 20:26
Forum: General
Topic: wth -- Thread time .vs Subroutine time
Replies: 192
Views: 5426

Re: wth -- Thread time .vs Subroutine time

@fxm, have you tried to force -mt in compilation?
by MrSwiss
Feb 14, 2021 20:21
Forum: Community Discussion
Topic: Shorthand for setter/getter hell
Replies: 3
Views: 179

Re: Shorthand for setter/getter hell

Properties are of limitted value in such cases (only ever a single value handled). They can be substituted with one's own handlers, like below example: ' This code works Type MyObject Public: declare Sub SetO(ByVal Val_x as UInteger, ByVal Val_y as UInteger) declare Function GetO(ByVal mode As ULong...
by MrSwiss
Feb 14, 2021 16:55
Forum: General
Topic: So whats up with arrays
Replies: 26
Views: 465

Re: So whats up with arrays

Using outdated manuals / compilers results almost always in some or other problem. Don't blame others if you are not keeping things updated (1.05.0 is pretty old by now). Programmers Manual: Passing Arrays to Procedures (online/up to date) Forum Search (advanced): - Query: +Passing +Array - Option: ...
by MrSwiss
Feb 14, 2021 3:45
Forum: Beginners
Topic: SLEEP seems to feed null value to subsequent INPUT statement
Replies: 7
Views: 142

Re: SLEEP seems to feed null value to subsequent INPUT statement

Flyzone wrote:I'm here to report a BUG
It's not a bug.
After a simple Sleep you'll have to clear the keyboard buffer, if you want to assure it's "empty".
While InKey <> ""
Wend
by MrSwiss
Feb 14, 2021 3:24
Forum: Community Discussion
Topic: Should beginners learn OOP first?
Replies: 15
Views: 450

Re: Should beginners learn OOP first?

Indeed, a very insightful comment, as expected.

Go to advanced search