Search found 38 matches

by Gadget
Tue Jun 17, 2025 11:06 pm
Forum: Announcement
Topic: YouTube PureBasic Videos
Replies: 20
Views: 1661

Re: YouTube PureBasic Videos

Great set of videos. I've only watched a few so far but can see I'll be able to learn a lot from them.

Thanks for putting all the work in.
by Gadget
Wed Feb 24, 2021 9:54 am
Forum: Coding Questions
Topic: Case sensitive "does file exist ?"
Replies: 9
Views: 1562

Re: Case sensitive "does file exist ?"

Hi,

Demivec & TI-994A - Thanks for your code. They both work well for me and provide a new approach I hadn't thought of so that helps me learn for the future.

Rashad & Keya - Thanks for adding the missing logic to my code. My app already collects the actual filenames on the disk into a structure ...
by Gadget
Tue Feb 23, 2021 7:41 pm
Forum: Coding Questions
Topic: Case sensitive "does file exist ?"
Replies: 9
Views: 1562

Case sensitive "does file exist ?"

Hi,

I know that "how do i determine if a file exists ?" has been a regular question over the years but I'm struggling to figure out a solution to my problem ....

FileSize() seems to be the normal way to go. However, that appears to be case insenstive so that FileSize(C:\foo.txt) will return the ...
by Gadget
Fri Apr 01, 2016 7:22 pm
Forum: Coding Questions
Topic: ClearGadgetItems() doesn't clear first row in EditorGadget?
Replies: 23
Views: 3917

Re: ClearGadgetItems() doesn't clear first row in EditorGadg

Hi Lord,

I gave your code a go and can confirm that the first line isn't cleared but the later lines are (PB 5.42 and Win 10). Hence, it appears that events are being handled okay and this is an oddity in the EditorGadget itself (presumably the Delay(500) is for the effect to be visible).

I don't ...
by Gadget
Thu Mar 24, 2016 4:11 pm
Forum: Coding Questions
Topic: COMate plus and PB 5.42
Replies: 2
Views: 2069

Re: COMate plus and PB 5.42

This link might help ... http://www.purebasic.fr/english/viewtop ... 55#p482355

srod update Comate recently

__________________________________________________
Link completed
24.03.2016
RSBasic
by Gadget
Tue Mar 01, 2016 6:28 pm
Forum: Announcement
Topic: PureBasic 5.42 LTS final is available !
Replies: 98
Views: 51021

Re: PureBasic 5.42 LTS final is available !

Fantastic, thanks Fred and team :D
by Gadget
Tue Feb 23, 2016 9:17 am
Forum: Coding Questions
Topic: How to do flickerfree resizing of gadgets?
Replies: 35
Views: 18458

Re: How to do flickerfree resizing of gadgets?

Works perfectly here, no flickering at all (Win 10 64 bit)
Nice One :)
by Gadget
Mon Feb 22, 2016 7:49 pm
Forum: Coding Questions
Topic: How to do flickerfree resizing of gadgets?
Replies: 35
Views: 18458

Re: How to do flickerfree resizing of gadgets?

mestnyi wrote:

If you do so :)
Vast improvement although there seems to be some corruption of the ticked tickboxes, especially when enlarging horizontally ...
by Gadget
Mon Feb 22, 2016 3:49 pm
Forum: Coding Questions
Topic: How to do flickerfree resizing of gadgets?
Replies: 35
Views: 18458

Re: How to do flickerfree resizing of gadgets?

Would also really be happy about a solution.

I checked some programs; for example PowerGrep from JustGreatSoftware.
The program has a complex GUI and... it flickers...

Maybe a general windows problem.

Even Excel 2010 in Win7; standard win32 controls are flickering.

Annoying...

The only way I ...
by Gadget
Wed Feb 17, 2016 9:27 am
Forum: The PureBasic Form Designer
Topic: Form-Designer generates wrong code for String Gadgets?
Replies: 43
Views: 28481

Re: Form-Designer generates wrong code for String Gadgets?

Hi Polo,

I always use your Form Designer for building screens in PB - it's brilliant and easy to use for playing around with screen designs to figure out how I want things to look and work. This, along with TI-994A's tutorials on event handling have really got me going in using PB.

Sure, there's ...
by Gadget
Fri Nov 13, 2015 7:25 pm
Forum: Tricks 'n' Tips
Topic: Strip/replace double or multiple spaces with single
Replies: 23
Views: 5968

Re: Strip/replace double or multiple spaces with single

Yep, I think you're right on both counts. I think I'll investigate further and update my routine.

As always, I'm really pleased to be able to improve my coding from the feedback of more experience folks such as yourself. Thanks for letting me know your thoughts.

Cheers,

Gadget
by Gadget
Fri Nov 13, 2015 7:12 pm
Forum: Tricks 'n' Tips
Topic: Strip/replace double or multiple spaces with single
Replies: 23
Views: 5968

Re: Strip/replace double or multiple spaces with single

Hi,

Not ASM and uses PureBasic strings. So, not fast but what I normally use is:

Procedure.s ReplaceMultipleSpaces(OldText.s)
; Returns the string passed to this function but with all multiple spaces reduced to a single space

Protected NewText.s = OldText

If NewText <> ""
; Keep looking ...
by Gadget
Sat Nov 07, 2015 9:48 pm
Forum: Off Topic
Topic: I'm looking for a PC guru(acrobat reader problem) ...
Replies: 8
Views: 2425

Re: I'm looking for a PC guru(acrobat reader problem) ...

Hi Marc_256,

You could try the following link which takes you to old and current versions of adobe reader. Play with the "go up to a higher level" and you'll find access to other adobe programs too.

ftp://ftp.adobe.com/pub/adobe/reader/win/

Skywalk, I'm a fan of SumatraPDF too, so much leaner ...
by Gadget
Tue May 19, 2015 9:55 am
Forum: Coding Questions
Topic: SQL query hellp needed please
Replies: 20
Views: 4583

Re: SQL query hellp needed please

Seems I was way off with my thoughts :oops:
Thank goodness there's some experts around to help :)
by Gadget
Tue May 19, 2015 8:54 am
Forum: Coding Questions
Topic: SQL query hellp needed please
Replies: 20
Views: 4583

Re: SQL query hellp needed please

Hi Fangbeast,

Been quite a while since I did any (basic) SQL programming but I do recall SELECT DISTINCT being used to return unique records.

Hope this helps,

Gadget