Search found 1236 matches

by #NULL
Mon Sep 26, 2022 5:48 am
Forum: Feature Requests and Wishlists
Topic: Column mode in PB IDE
Replies: 10
Views: 966

Re: Column mode in PB IDE

Well, you get a rectangle selection, but the edit does not work. In column mode i believe you would be able type/edit on all the lines at once.
by #NULL
Sun Jul 31, 2022 2:13 pm
Forum: General Discussion
Topic: EnableExplicit generator?
Replies: 16
Views: 1429

Re: EnableExplicit generator?

In case you don't know: There is DisableExplicit as well. So you can convert only part of your code at times. Or you start at the bottom of your files, moving EnableExplicit up in chunks to convert new parts.
by #NULL
Sun Jul 31, 2022 2:00 pm
Forum: Coding Questions
Topic: What is best... define.s variable or define variable.s
Replies: 35
Views: 2429

Re: What is best... define.s variable or define variable.s

I don't know if the documentation talks about predefined structures, but you can find them in
Menu > Tools > Structure Viewer > Tab 'Structures' > scroll down list to 'String' and doubleclick to see Definition
by #NULL
Sun Jul 31, 2022 12:28 pm
Forum: Coding Questions
Topic: What is best... define.s variable or define variable.s
Replies: 35
Views: 2429

Re: What is best... define.s variable or define variable.s

You have to work a little more on that one though :) . It's wrong and causes an IMA. It's just a pointer, you need to allocate and assign a memory to before writing. Define structString.String\s = "test1" Debug structString\s Define *pStructString.String = AllocateStructure(String) *pStru...
by #NULL
Sun Jul 31, 2022 9:45 am
Forum: Coding Questions
Topic: What is best... define.s variable or define variable.s
Replies: 35
Views: 2429

Re: What is best... define.s variable or define variable.s

... I post this short example : You have to work a little more on that one though :) . It's wrong and causes an IMA. It's just a pointer, you need to allocate and assign a memory to before writing. <edit> Define structString.String\s = "test1" Debug structString\s Define *pStructString.St...
by #NULL
Sat Jul 30, 2022 10:22 am
Forum: Coding Questions
Topic: What is best... define.s variable or define variable.s
Replies: 35
Views: 2429

Re: What is best... define.s variable or define variable.s

In addition to barry's post above: When using addresses of string literals, keep in mind that identical literals will be reused, so different pointer variables could point to the same string, affecting each other: EnableExplicit Define s1.s = "test" Define s2.s = "test" s2 = &quo...
by #NULL
Sat Jul 16, 2022 6:33 pm
Forum: General Discussion
Topic: Flock of birds
Replies: 16
Views: 1284

Re: Flock of birds

cool, I like it. :)
by #NULL
Thu May 26, 2022 10:53 am
Forum: Off Topic
Topic: I took a hunting course and everything
Replies: 10
Views: 1140

Re: I took a hunting course and everything

Oh my deer! From your programming skills I could have sworn you are a human. I just got over the fact that you're a clever frog ..and now this. Your hunting looks successful though, congrats.

(*insert image of deer grinning with human teeth*)

:)
by #NULL
Thu May 12, 2022 5:45 pm
Forum: Feature Requests and Wishlists
Topic: Additional include directories
Replies: 13
Views: 1366

Re: Additional include directories

Danilo wrote: Thu May 12, 2022 4:09 pm The solution could be this feature request: Specify additional Include Directories
at command-line or from within the IDE. ;)
IIRC you can define constants at the compilation commandline and in the IDE ..and then use them in include statements?
by #NULL
Sat Apr 09, 2022 2:35 pm
Forum: General Discussion
Topic: Double-defining a variable
Replies: 5
Views: 814

Re: Double-defining a variable

Redeclaration is not consistent across the different keywords and situations. Some notes that I already posted somewhere: "Redeclaration errors are not very consitent" : Should Define be allowed for procedure parameters? ; Global does not complain about redeclaration as long as the type do...
by #NULL
Sat Mar 26, 2022 6:07 pm
Forum: Coding Questions
Topic: Picture cutout
Replies: 13
Views: 832

Re: Picture cutout

With GrabImage() you would draw the grabbed images onto sprites, then use the sprites for displaying. But if you create your sprites with the size of a card already then you don't need to grab, you can draw the whole image with a negative offset onto the sprites to get each card as a sprite. Of cour...
by #NULL
Sat Feb 19, 2022 1:28 pm
Forum: Coding Questions
Topic: Writing to a control from a thread
Replies: 27
Views: 1919

Re: Writing to a control from a thread

What's the point of using threads if you WaitThread() directly after CreateThread()? The main-thread will not do anything during this time, including GUI updates like you mentioned.
by #NULL
Mon Feb 14, 2022 2:21 pm
Forum: Game Programming
Topic: un-SetFrameRate
Replies: 7
Views: 1316

Re: un-SetFrameRate

I would not care about the framerate. Just use a 'delta' timing value as a factor in calculations. example: https://www.purebasic.fr/english/viewto ... 97#p496697
by #NULL
Sun Feb 06, 2022 12:39 pm
Forum: Bugs - IDE
Topic: Identation problem [Solved]
Replies: 22
Views: 1909

Re: Identation problem

I'm not sure what you mean by 'original condition', is it right or wrong then?
What happens if you delete the line breaks and whitespaces between the lines and press Enter again? Is the result different if you use simpler characters in the string literal?