Search found 25 matches

by Pud
Wed Mar 05, 2025 10:39 am
Forum: Bugs - Windows
Topic: Tab key not detected.
Replies: 9
Views: 3090

Re: Tab key not detected.

A fairly minimal workaround to get over the problem described at the start of this thread.

If OpenWindow(0, 0, 0, 220, 220, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)

CanvasGadget(0, 10, 10, 200, 200,#PB_Canvas_Keyboard)

Repeat
Event = WaitWindowEvent()

Select Event ...
by Pud
Wed Jun 14, 2023 11:46 am
Forum: Bugs - Windows
Topic: Tab key not detected.
Replies: 9
Views: 3090

Tab key not detected.

Help please.
Windows 10/11, PB 6.02

I need to detect the TAB key. All (?) the other keys return the key code except the TAB key. I'm sure this worked in the past.
Cheers.

If OpenWindow(0, 0, 0, 220, 220, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)

CanvasGadget(0, 10, 10, 200 ...
by Pud
Mon Jun 28, 2021 12:42 pm
Forum: Coding Questions
Topic: Readstring. Is it an error or just an empty string?
Replies: 13
Views: 2839

Re: Readstring. Is it an error or just an empty string?

Saki, no ignore EOL is not a solution as I read many records separated with an EOL. See BarryG’s example above.

NicTheQuick. I’ll experiment with that one, cheers.
by Pud
Mon Jun 28, 2021 11:41 am
Forum: Coding Questions
Topic: Readstring. Is it an error or just an empty string?
Replies: 13
Views: 2839

Re: Readstring. Is it an error or just an empty string?

Sorry my bad I didn’t mean just one string but a series of CR/LF delimited records.
by Pud
Mon Jun 28, 2021 10:35 am
Forum: Coding Questions
Topic: Readstring. Is it an error or just an empty string?
Replies: 13
Views: 2839

Readstring. Is it an error or just an empty string?

"Return value
Returns the read string, or an empty string if the read has failed."

What if your file contains empty strings how can you detect an error?

Cheers
by Pud
Thu Dec 12, 2019 12:54 am
Forum: Coding Questions
Topic: A few questions regarding Files and Linked Lists
Replies: 9
Views: 2488

Re: A few questions regarding Files and Linked Lists

Thanks for the reply.

Yes I have created a ‘test for dups’ procedure and am currently inserting it around various bits of code it to see if
I can determine exactly the point of corruption. I’ve tried FlushFilebuffers and also tried setting the size of the file buffer
to something longer then the ...
by Pud
Tue Dec 10, 2019 3:59 pm
Forum: Coding Questions
Topic: A few questions regarding Files and Linked Lists
Replies: 9
Views: 2488

Re: A few questions regarding Files and Linked Lists

Ok. One month on and my problem persists. Extensive testing and error trapping (no errors) seems to point to the following procedure.
The list is just simple asci text with each line 1k to 5k long. To exclude networking errors I first copy the file to a unique local
temporary file and work on it ...
by Pud
Thu Nov 07, 2019 11:05 am
Forum: Coding Questions
Topic: A few questions regarding Files and Linked Lists
Replies: 9
Views: 2488

Re: A few questions regarding Files and Linked Lists

May be a stupid question, but are you using a windows file server or Linux ( native or via samba ) file server.

I've had problems in the past using Samba and random file anomalies ( both in samba 3 and 4 ).


Yes indeed. Running from a NAS fileserver. However, I migrated everything to a Windows ...
by Pud
Thu Nov 07, 2019 12:45 am
Forum: Coding Questions
Topic: A few questions regarding Files and Linked Lists
Replies: 9
Views: 2488

A few questions regarding Files and Linked Lists

Greetings all.

"How often have I said that when you have excluded the impossible whatever remains,
however improbable, must be the truth." said Sherlock Homes

I'm chasing a destructive and expensive bug on a Windows system. Simple Ascii strings
separated by a CRLF are stored on a network, loaded ...
by Pud
Sat Apr 22, 2017 11:05 pm
Forum: Coding Questions
Topic: Email body disappears with attachments. It wasn't me!
Replies: 8
Views: 2429

Re: Email body disappears with attachments. It wasn't me!

I didn't know you could do that. Fixed.
by Pud
Sat Apr 22, 2017 5:31 pm
Forum: Coding Questions
Topic: Email body disappears with attachments. It wasn't me!
Replies: 8
Views: 2429

Re: Is it me?

A workaround is to add a CRLF at the beginning of the body text. This works for me.
That's useful to know Pud, thanks.

Please set a better thread title. "Is it me?" tells nothing about the content of the thread.

Ya, I’ve already been told off for that :oops:

It’s just that the other couple of ...
by Pud
Sat Apr 22, 2017 11:38 am
Forum: Coding Questions
Topic: Email body disappears with attachments. It wasn't me!
Replies: 8
Views: 2429

Re: Is it me?

A workaround is to add a CRLF at the beginning of the body text. This works for me.
by Pud
Tue Apr 11, 2017 12:52 am
Forum: Coding Questions
Topic: Email body disappears with attachments. It wasn't me!
Replies: 8
Views: 2429

Re: Is it me?

;With some further testing using PB 5.60

InitNetwork()
Procedure mail1()

CreateMail(0,myemailaddress,"Some subject")
SetMailBody(0,"Test Body")
;AddMailAttachment(0,"JPG","m:\me.jpg")
AddMailRecipient(0,myemailaddress,#PB_Mail_To)
SendMail(0,myserver,25,0,myusername,mypassword ...
by Pud
Mon Apr 10, 2017 10:13 pm
Forum: Coding Questions
Topic: Email body disappears with attachments. It wasn't me!
Replies: 8
Views: 2429

Email body disappears with attachments. It wasn't me!

A few simple lines of code to send an email.
If I add an attachement the body is ignored.
If I remove the attachement the body is ok

Is this correct?

Cheers.
by Pud
Wed Feb 17, 2016 3:35 pm
Forum: Tricks 'n' Tips
Topic: ScreenGrab(Windows only)
Replies: 3
Views: 1944

Re: ScreenGrab

Hi,

you didn't searched enough :wink:
http://www.purebasic.fr/english/viewtopic.php?f=12&t=42138
http://www.purebasic.fr/english/viewtopic.php?f=12&t=52936
http://www.purebasic.fr/english/viewtopic.php?f=12&t=3695

Bernd
I’m sure I looked at these.
The screen capture bit is easy enough provided ...