Search found 830 matches

by Saki
Wed May 06, 2020 12:30 pm
Forum: Coding Questions
Topic: Why does this code always returns zero ?
Replies: 22
Views: 2681

Re: Warum gibt dieser Code immer Null zurück?

Hi all, vmars316 is not an experienced programmer. His code is not beautiful and not elegant. But if only the global variable was the error, it doesn't matter if he uses Goto or ProcedureReturn without defined return parameters, both are no errors. Goto is very powerful and yet it is a part of PB. A...
by Saki
Tue May 05, 2020 11:58 pm
Forum: Coding Questions
Topic: Why does this code always returns zero ?
Replies: 22
Views: 2681

Re: Warum gibt dieser Code immer Null zurück?

Hi

Try simple :

Code: Select all

If FileNameText$ = ""
And make sure that you are never allowed to jump out of a Select - Endselect, this will cause trouble.
by Saki
Sun Apr 26, 2020 12:43 pm
Forum: General Discussion
Topic: FileSeek Bug 5.72
Replies: 2
Views: 1652

FileSeek Bug 5.72

; 負のオフセットのバグ - Negative offset bug - Positive works - Also error in doku ? file$ = GetTemporaryDirectory() + "日本の小花であるサキ" file = CreateFile(#PB_Any , file$) WriteString(file , "AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDD" , #PB_UTF8) Debug FileSeek(file , Lof(file) -8 ) ; Give back 24 - OK...
by Saki
Wed Apr 22, 2020 8:48 am
Forum: Coding Questions
Topic: help with clearing part of a transparent image
Replies: 9
Views: 1489

Re: Hilfe beim Löschen eines Teils eines transparenten Bilde

Hello everyone
Problems with funky are mostly on Linux
Linux does not like it
by Saki
Thu Apr 09, 2020 9:03 am
Forum: Bugs - Linux
Topic: [Done] CopyImage Bug 572
Replies: 2
Views: 2148

[Done] CopyImage Bug 572

Test - テスト - Ubuntu x64 - PB572 final Changed demo code from user Wombats CopyImage() is apparently defective EnableExplicit Enumeration #Window #Tree #Canvas EndEnumeration Define img, icon img = CreateImage(#PB_Any, 16, 16, 24) If StartDrawing(ImageOutput(img)) Box(0, 0, OutputWidth(), OutputHeigh...