Search found 3600 matches

by Demivec
Sun Apr 07, 2024 3:13 pm
Forum: Coding Questions
Topic: How to create constants automatically?
Replies: 12
Views: 459

Re: How to create constants automatically?

== > The only thing I am trying to accomplish, is to define a constant with the contents of a variable with a Macro. The limitations of using variables and functions in the definition of constants at compile time is clear. Why do you want to define these values at compile time as individual constan...
by Demivec
Tue Apr 02, 2024 4:32 am
Forum: Coding Questions
Topic: Problem with pointers to structures.
Replies: 3
Views: 190

Re: Problem with pointers to structures.

Could someone help me figure out what's wrong with this code? I can't seem to understand it. In theory, I should be able to change the values of "Field1" or "Field2" by associating the pointers contained in the array memory_ptr() with the respective structure, but it doesn't see...
by Demivec
Mon Apr 01, 2024 6:39 am
Forum: Off Topic
Topic: Happy Birthday, Fred!
Replies: 17
Views: 575

Re: Happy Birthday, Fred!

Happy Birthday Fred!
by Demivec
Thu Mar 28, 2024 11:34 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 325
Views: 40177

Re: PureBasic 6.10 LTS is out !

This release is definitely a milestone. Thank you for all the hard work.
by Demivec
Wed Mar 27, 2024 5:32 pm
Forum: Coding Questions
Topic: What is the maximum length a string variable can hold?
Replies: 15
Views: 491

Re: What is the maximum length a string variable can hold?

p.s=Space(18306000000) Debug Len(p.s) Yes, it is more than 18 billion bytes (billion in American English, it is 18 milliards in French, Dutch, German, Italian,...)... 18306000000 = 18306000000 Unicode chars at 2 bytes a piece = 36612000000 bytes = 36612000 KB = 36120 MB = 36.12 GB. Do you have 34.1...
by Demivec
Wed Mar 27, 2024 12:15 pm
Forum: Feature Requests and Wishlists
Topic: DebugOutput window / Script line
Replies: 5
Views: 196

Re: DebugOutput window / Script line

Another macro variation: ;Use macro DebugL when you want the line number included before the debug output Macro DebugL Debug "" + #PB_Compiler_Line + ": " + EndMacro DebugL "Before Loop" For i = 1 To 10 DebugL i Next DebugL "Loop complete" outputs: 9: Before L...
by Demivec
Mon Mar 25, 2024 8:37 pm
Forum: 3D Programming
Topic: ResizeBillboard work?
Replies: 1
Views: 67

Re: ResizeBillboard work?

Result = AddBillboard(#BillboardGroup, x, y, z) Return value The new billboard index. This value can be used to manipulate this specific billboard with the commands which needs one. What about this change to your non-runnable code sample? bb= CreateBillboardGroup(#PB_Any, MaterialID(mate),10,10) Re...
by Demivec
Mon Mar 11, 2024 5:13 am
Forum: Coding Questions
Topic: Getting system environment variables only (Windows)?
Replies: 8
Views: 259

Re: Getting system environment variables only (Windows)?

There's no filtering available that I am aware of.
by Demivec
Mon Mar 11, 2024 4:18 am
Forum: Coding Questions
Topic: Getting system environment variables only (Windows)?
Replies: 8
Views: 259

Re: Getting system environment variables only (Windows)?

Is there anything standing in the way of you using the functions in PureBasic's Process library to get the variables and values?
by Demivec
Sun Mar 10, 2024 11:40 pm
Forum: Bugs - IDE
Topic: [PB610bX] Unicode problem in some PB message strings.
Replies: 4
Views: 320

Re: [PB610bX] Unicode problem in some PB message strings.

Where's the code sample that generates the problem shown the images?
by Demivec
Sun Mar 10, 2024 6:35 am
Forum: Game Programming
Topic: Fastest way to move a sprite
Replies: 3
Views: 456

Re: Fastest way to move a sprite

eddy's post Module - Animation & Motion tween FX contains some great functions to help out with the timing of animations.


Did you ever finish your program or are you just trying to tune it up?
by Demivec
Fri Mar 08, 2024 12:18 am
Forum: Coding Questions
Topic: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?
Replies: 12
Views: 508

Re: AddSysTrayIcon (1, WindowID(0), ImageID(0)) ?

AZJIO wrote: Thu Mar 07, 2024 11:47 pm
mk-soft wrote: Thu Mar 07, 2024 9:06 pm See PB help Purebasic objects.
I read and received an answer that sometimes worried me
Both methods (indexed and dynamic) can be used together at the same time without any conflict.
Did you resolve your worries or do you still have concerns when mixing indexed and dynamic object numbering?
by Demivec
Thu Mar 07, 2024 2:00 am
Forum: Feature Requests and Wishlists
Topic: Better handling of Custom Events/EventTypes
Replies: 9
Views: 3528

Re: Better handling of Custom Events/EventTypes

Wouldn't it be more logical if the whole program uses ONE #PB_Event_FirstCustomValue? I don't see why every module needs its own... There is only one #PB_Event_FirstCustomValue. It's a constant. That is why the solution is a named enumeration. A named enumeration generates sequential values. The ne...
by Demivec
Wed Mar 06, 2024 6:46 am
Forum: Feature Requests and Wishlists
Topic: Better handling of Custom Events/EventTypes
Replies: 9
Views: 3528

Re: Better handling of Custom Events/EventTypes

You need to do all of the enumerations through the common module, whether inside or outside of a module.

Modules can't access the enumerations in the main scope but the main scope can access the enumerations in the 'public' scope of a module.
by Demivec
Fri Feb 23, 2024 6:43 pm
Forum: Coding Questions
Topic: Close button intermittently doesn't close
Replies: 17
Views: 663

Re: Close button intermittently doesn't close

Hi Fred, Do you have a link or help page that explains event priorities? If I use BindEvent(), PostEvent() along with the standard Event Loop, which Procedure "sees" an event first? Does BindEvent return to the Event Loop and clear the event it acted on? From my understanding BindEvent() ...