Search found 10 matches

by Osmiroid
Sat Feb 02, 2008 8:27 pm
Forum: Coding Questions
Topic: Case insensitive regex?
Replies: 2
Views: 1015

hallodri wrote:try this

Code: Select all

RegExp = CreateRegularExpression(#PB_Any, "(?i)snapshot_[0-9]{10}.jpg")
:P OK, thanks!
by Osmiroid
Sat Feb 02, 2008 8:11 pm
Forum: Coding Questions
Topic: Case insensitive regex?
Replies: 2
Views: 1015

Case insensitive regex?

I've read the http://www.pcre.org/pcre.txt but I still can't figure out how to do a case-insensitive match.

RegExp = CreateRegularExpression(#PB_Any, "snapshot_[0-9]{10}.jpg")

If RegExp
If MatchRegularExpression(RegExp, "SNAPSHOT_0438293845.jpg")
Debug "Match"
Else
Debug "No match"
EndIf ...
by Osmiroid
Tue Jul 03, 2007 7:09 pm
Forum: General Discussion
Topic: PB order
Replies: 7
Views: 1533

rsts wrote:Check your spam filter/folder.

If it was a normal credit card order, fulfullment is automated.

cheers
The only message I received was a confirmation from the billing service. There are no other messages, I checked.
by Osmiroid
Tue Jul 03, 2007 6:51 pm
Forum: General Discussion
Topic: PB order
Replies: 7
Views: 1533

PB order

I was impressed with PB so I decided to buy it!

Unfortunately I haven't received an e-mail yet (it's been over 12 hours) is this unusual?
by Osmiroid
Mon Jul 02, 2007 8:07 pm
Forum: Coding Questions
Topic: File write functions not returning bytes actually written
Replies: 10
Views: 3483

File write functions not returning bytes actually written

WriteByte
WriteCharacter
WriteData
WriteDouble
WriteFloat
WriteLong
WriteQuad
WriteString
WriteStringN
WriteWord

The return values aren't described in the docs but I assume that they indicate bytes actually written.

All the above functions indicate bytes written to a file even when they are not (e ...
by Osmiroid
Sat Jun 30, 2007 2:13 pm
Forum: Coding Questions
Topic: Is there error checking with file writing functions?
Replies: 12
Views: 1926

Psychophanta wrote:It seems a Microsoft issue (or bug ?) :roll:
I don't know if I should report this as a bug because the return values aren't specified in the documentation.
by Osmiroid
Sat Jun 30, 2007 1:37 am
Forum: Coding Questions
Topic: Is there error checking with file writing functions?
Replies: 12
Views: 1926

Kaeru Gaman wrote:just an idea:
does a FlushFileBuffers() report a full disk?
Ah! Now that's interesting, FlushFileBuffers() returns 0 as soon as the disk reports full.
by Osmiroid
Sat Jun 30, 2007 12:09 am
Forum: Coding Questions
Topic: Is there error checking with file writing functions?
Replies: 12
Views: 1926

Tranquil wrote:WriteData() etc returns the number of bytes written to the disc. it works fine here.
The problem is that all the write functions report bytes supposedly written even after the drive is full.

File Monitor was returning "DISK FULL" when WriteString was reporting bytes being written.
by Osmiroid
Fri Jun 29, 2007 10:00 pm
Forum: Coding Questions
Topic: Is there error checking with file writing functions?
Replies: 12
Views: 1926

netmaestro wrote:Those commands are returning 1 when successful, so a reasonable assumption would be they'd return 0 if not. But the doc doesn't say so and I don't know how you'd test it.
It doesn't seem to work. I set up a small test program and supposedly it wrote a 6 meg file to a floppy without complaining. :D
by Osmiroid
Fri Jun 29, 2007 8:47 pm
Forum: Coding Questions
Topic: Is there error checking with file writing functions?
Replies: 12
Views: 1926

Is there error checking with file writing functions?

For the following functions:

WriteByte
WriteCharacter
WriteData
.
.
.
WriteStringN
WriteWord

Is there any way of checking whether the write was successful? I'm using a demo version of PureBasic.