Search found 559 matches

by ebs
Thu Aug 28, 2025 2:36 pm
Forum: Feature Requests and Wishlists
Topic: The IIF function
Replies: 7
Views: 1673

Re: The IIF function

Only because I'm extremely lazy (apologies to AZJIO): Macro IIF(_expr, _truepart, _falsepart)
IIFX(Bool(_expr), _truepart, _falsepart)
EndMacro

Procedure.s IIFX(expr, truepart.s, falsepart.s)
If expr
ProcedureReturn truepart
Else
ProcedureReturn falsepart
EndIf
EndProcedure

Global result.s ...
by ebs
Fri Aug 22, 2025 5:06 pm
Forum: Tricks 'n' Tips
Topic: Numeric Password…
Replies: 11
Views: 1005

Re: Numeric Password…

Thanks for your fast reply.

I did try #EM_GETPASSWORDCHAR and guess what it returns? '*' :D

I did find a way to cheat by changing the font to Wingdings and using one of the black dot characters in that font, then switching back to the default font when showing the actual password characters. It ...
by ebs
Fri Aug 22, 2025 4:29 pm
Forum: Tricks 'n' Tips
Topic: Numeric Password…
Replies: 11
Views: 1005

Re: Numeric Password…

@Axolotl,

Thank you! Your tip about about #EM_SETPASSWORDCHAR is exactly what I need.

One question - do you know how I can do this in an ancient ASCII (not UNICODE) executable?
I would have thought that passing the correct value as wParam should be all that's required, but I can't get it to work ...
by ebs
Fri Aug 08, 2025 2:17 pm
Forum: Coding Questions
Topic: Sqlite problem with purebasic
Replies: 8
Views: 605

Re: Sqlite problem with purebasic

I'm glad that miso's solution worked, but I don't think it's because of the semicolon at the end of the SQL statement.
I use SQLite extensively without the trailing semicolon and it works fine.

I think the reason miso's code worked is that he used double quotes (") around the SQL statement, which ...
by ebs
Thu Jul 31, 2025 2:11 pm
Forum: Tricks 'n' Tips
Topic: Custom types
Replies: 6
Views: 537

Re: Custom types

Thank you - this is really clever!

As you said, it doesn't enforce the use of the correct type, but it makes your code much more self-documenting.
It makes the C programmer in me very happy! :D
by ebs
Thu Jun 19, 2025 2:27 pm
Forum: Coding Questions
Topic: ExcelWriter.pb has stopped working
Replies: 6
Views: 1149

Re: ExcelWriter.pb has stopped working

Is it possible to open an existing excel file to continue writing in it using Excelwriter.pb?
No - it can only create a new Excel file and write to it. It doesn't have any code to open an existing file.
by ebs
Wed May 14, 2025 2:22 pm
Forum: Feature Requests and Wishlists
Topic: FindString to support whole words
Replies: 18
Views: 2605

Re: FindString to support whole words

Not official, but how about

Code: Select all

Debug FindString("text1$ text2$ text3$"," t2$") ; returns 0
by ebs
Fri Feb 28, 2025 7:08 pm
Forum: Tricks 'n' Tips
Topic: Sort ListIconGadget [Windows only]
Replies: 50
Views: 6988

Re: Sort ListIconGadget [Windows only]

Waiting anxiously... :D
by ebs
Fri Feb 28, 2025 3:37 pm
Forum: Tricks 'n' Tips
Topic: Sort ListIconGadget [Windows only]
Replies: 50
Views: 6988

Re: Sort ListIconGadget [Windows only]

Hi @Zapman,

Thanks for the code update and the arrow options. I noticed one problem:

When either of the "show arrows" options are selected, clicking on the same column header alternates between ascending and descending sort, as expected.

However, if "don't show arrows" is selected, the first ...
by ebs
Tue Feb 25, 2025 3:43 pm
Forum: Tricks 'n' Tips
Topic: Sort ListIconGadget [Windows only]
Replies: 50
Views: 6988

Re: Sort ListIconGadget [Windows only]

In the US, GetLocaleInfo_() returns "M/d/yyyy" on my PC.

When your code reformats that it yields "%m/%d/%yyyy" instead of "%mm/%dd/%yyyy", so the dates are not displayed correctly.
by ebs
Mon Feb 17, 2025 3:49 pm
Forum: Off Topic
Topic: Windows Search
Replies: 24
Views: 5318

Re: Windows Search

Cyllceaux wrote: Mon Feb 17, 2025 10:56 am How about www.baremetalsoft.com/baregrep ?

246KB :wink:
This (and the companion program BareTail) are AMAZING pieces of software!
Thank you for pointing them out.
by ebs
Mon Jan 13, 2025 8:26 pm
Forum: Announcement
Topic: Ar-S Stream Radio 2 (Release)
Replies: 12
Views: 17502

Re: Ar-S Stream Radio 2 (Release)

@ar-s,

This is really nice! I put it on the mini PC I use as a music server attached to my stereo system and enjoyed listening to it over the weekend.

On some streams, it performed better than a full music player application, with no drop-outs or interruptions.

Would you consider a few requests ...
by ebs
Thu Dec 19, 2024 3:33 pm
Forum: Coding Questions
Topic: sqlite in memory vs IMPBDB
Replies: 21
Views: 2680

Re: sqlite in memory vs IMPBDB


dumb question what's wrong with this query string?

CREATE TABLE customers (id INTEGER PRIMARY KEY, customerid CHAR(64), firstname CHAR(64), lastname CHAR(64), company CHAR(64), city, CHAR(64), country CHAR(64), phone1 CHAR(64), phone2 CHAR(64), email CHAR(128), subscriptiondate CHAR(64 ...
by ebs
Wed Oct 30, 2024 4:48 pm
Forum: Tricks 'n' Tips
Topic: 360° Panorama Viewer
Replies: 7
Views: 1706

Re: 360° Panorama Viewer

This is indeed impressive, but I think zooming in/out with the mouse scroll wheel is not working correctly.

This statement WheelDelta = GetSystemMetrics_(#SM_MOUSEWHEELPIXELS) doesn't return the number of clicks the user has scrolled the mouse wheel. It just returns 1 (#True) to indicate that the ...
by ebs
Fri Sep 20, 2024 6:22 pm
Forum: Coding Questions
Topic: Missing gridline in LIG
Replies: 20
Views: 3335

Re: Missing gridline in LIG

ChrisR,

Your code produces the best looking result on Win 11 IMHO.
The header row is clearly defined with a different color than the rest of the control and there are no "buttons" to click! :D

It also works fine with my standard trick of setting the header font to bold.

Thank you!