Search found 3749 matches

by Demivec
Sat Aug 16, 2025 7:01 am
Forum: Coding Questions
Topic: Problem with Filerequester
Replies: 17
Views: 533

Re: Problem with Filerequester


This problem occurs when I call input file requester for the second time
DefaultFile$ = “d:\toto\toto.csv”
; DefaultFile$ = default file to be displayed
Filter$ = “CSV file (*.csv)|*.csv”
Filter = 0 ; use the first of the three possible filters by default
File11$ = OpenFileRequester(“Select ...
by Demivec
Mon Aug 11, 2025 6:47 pm
Forum: General Discussion
Topic: About the long (.l) on recent PB...
Replies: 6
Views: 300

Re: About the long (.l) on recent PB...

Are you referring to the process that returns memory allocation addresses that are more random instead of sequential, like low ones first and high ones later, as an added security feature? If so, then you realize that change merely exposed that the variables that needed to be changed were previously ...
by Demivec
Sun Aug 10, 2025 3:46 am
Forum: Tricks 'n' Tips
Topic: Uptime On Your App
Replies: 27
Views: 736

Re: Uptime On Your App





here is another one
Uhhh, But for some reason yours is ahowing 4/ days plus the tick up. This wont work either.

The reason is, you are using an older PB version and your PC is since 4 days on.


That's amazing how you deduce that, How? PC was up 4 days+ and I was testing on PB ver5.40 ...
by Demivec
Sat Aug 09, 2025 7:46 pm
Forum: Tricks 'n' Tips
Topic: Uptime On Your App
Replies: 27
Views: 736

Re: Uptime On Your App


Ok BarryG... Like I said at the start FormatDate failed me same as it does with your code, modified to in iclude %dd
+FormatDate("%dd/%hh:%ii:%ss",Date()-start)

App runtime is: 01/00:00:01
App runtime is: 01/00:00:02
App runtime is: 01/00:00:03
App runtime is: 01/00:00:04
App runtime is: 01/00 ...
by Demivec
Fri Aug 08, 2025 10:04 am
Forum: Tricks 'n' Tips
Topic: Uptime On Your App
Replies: 27
Views: 736

Re: Uptime On Your App

If you really don't need finer resolution than seconds you can also use DateUTC() instead of GetTickCount_().
by Demivec
Thu Jul 31, 2025 2:59 pm
Forum: Coding Questions
Topic: Is this a ReplaceString Bug?
Replies: 9
Views: 433

Re: Is this a ReplaceString Bug?

I do not think it is a bug. The search and replace is started at the beginning of the source and moves character by character. It does not search the replacements after they have each been made.
by Demivec
Thu Jul 31, 2025 9:11 am
Forum: Off Topic
Topic: AIs
Replies: 14
Views: 678

Re: AIs


This is interesting!
Grok and God:
https://www.youtube.com/watch?v=ga7m14CAymo


Piero, that was an interesting video on Grok and how it operated as an AI. Ignoring the subjects that were being inquired about for a moment, it was interesting to note that it revealed that it gave answers to ...
by Demivec
Thu Jul 31, 2025 4:17 am
Forum: Coding Questions
Topic: GetExtensionPart fails with a space
Replies: 17
Views: 565

Re: GetExtensionPart fails with a space


This is what I'm using now, since it covers all situations (spaces, multiple dots, dots at the start and end, dots in the path):

For windows, a full stop (period) can be the first character of a filename. If the first character is the only period in the filename then there is no extender.

Thus ...
by Demivec
Mon Jun 16, 2025 11:23 am
Forum: Bugs - Linux
Topic: [PB6.21] Bug? All radio buttons become on
Replies: 12
Views: 553

Re: [PB6.21] Bug? All radio buttons become on

marcoagpinto wrote: Mon Jun 16, 2025 11:19 am And it works well on Windows 11.
Change the creation order of the gadget types like I suggested and see if it then works in both Windows and Ubuntu.
by Demivec
Mon Jun 16, 2025 11:20 am
Forum: Bugs - Linux
Topic: [PB6.21] Bug? All radio buttons become on
Replies: 12
Views: 553

Re: [PB6.21] Bug? All radio buttons become on



The first time this function is called, a group is created and all following calls of OptionGadget() will add a gadget to this group. To finish the group, just create a gadget of another type.

IMHO this is not a big and it is according to the documentation.

Solution, create all of the ...
by Demivec
Mon Jun 16, 2025 11:09 am
Forum: Bugs - Linux
Topic: [PB6.21] Bug? All radio buttons become on
Replies: 12
Views: 553

Re: [PB6.21] Bug? All radio buttons become on

The first time this function is called, a group is created and all following calls of OptionGadget() will add a gadget to this group. To finish the group, just create a gadget of another type.

IMHO this is not a big and it is according to the documentation.

Solution, create all of the ...
by Demivec
Tue Jun 10, 2025 5:19 am
Forum: General Discussion
Topic: canvas keycode weirdness
Replies: 8
Views: 820

Re: canvas keycode weirdness



Don't know, if this also qualifies as a bug?


They appear to be for the screen. The arrow keys are returning the VK_Codes , #VK_UP ...


Key = GetGadgetAttribute(0, #PB_Canvas_Key)

Returns the key that was pressed or released in a #PB_EventType_KeyDown or
#PB_EventType_KeyUp event. The ...
by Demivec
Sat Jun 07, 2025 12:30 am
Forum: Feature Requests and Wishlists
Topic: Draw a sprite on a sprite
Replies: 2
Views: 624

Re: Draw a sprite on a sprite

It has been many versions of PureBasic since that was possible and then it was only possible with the DirectX 7 sub system. I don't think it is a likely possibility.

However, for your demonstrated need you could just pre-make the necessary sprites and display them as needed instead of remaking the ...
by Demivec
Fri Jun 06, 2025 4:45 am
Forum: Coding Questions
Topic: Possible bug.
Replies: 5
Views: 730

Re: Possible bug.

I understood that you did these steps:

ProgA load
ProgA run
ProgA stop/kill
ProgA change
ProgA new run
SaveAs ProgB
ProgA load
(menu indicates a Prog is already running)
Kill running Prog
---The only program running stops--

I would think that the IDE only allows one active ...
by Demivec
Fri Jun 06, 2025 4:23 am
Forum: Coding Questions
Topic: Speed ​​of a program...
Replies: 13
Views: 980

Re: Speed ​​of a program...

SPH wrote: Thu Jun 05, 2025 10:38 pm Do I need to create a routine to calculate the speed and perform multiplication for all my procedures? (I'm willing to do it.)
Yes. :)