Search found 25 matches

by morosh
Mon Jun 29, 2026 2:41 pm
Forum: Coding Questions
Topic: about LoadSound()
Replies: 2
Views: 931

Re: about LoadSound()

Resolved:
using AI, I should specify the path of sound files in the resource field of "create app", that's all

Thank you
by morosh
Mon Jun 29, 2026 9:20 am
Forum: Coding Questions
Topic: about LoadSound()
Replies: 2
Views: 931

about LoadSound()

hello:
I'm writing a custom count down timer with sound alert at some intervals, it runs OK on Laptop (web app), but on android I got (in the debugger):
LoadSound(0, "./data/beep2s.wav"): Loading error
LoadSound(1, "./data/beep5s.wav"): Loading error

I always thought that sound files will be ...
by morosh
Fri Mar 27, 2026 6:52 pm
Forum: Coding Questions
Topic: The easiest way to store preferences for mi app?
Replies: 11
Views: 29660

Re: The easiest way to store preferences for mi app?

Hello:
I'm just trying Peter Preferences module, I'm running "PreferencesDemo.sb", all is well (the debug window display the correct values), but I'm not seeing any file "Preferences.prefs" created, at least not in the main folder, where is it stored?

Thanks
by morosh
Wed Jan 22, 2025 1:55 pm
Forum: Coding Questions
Topic: Runprogram
Replies: 8
Views: 20953

Re: Runprogram

by morosh
Wed Jan 22, 2025 10:00 am
Forum: Coding Questions
Topic: image size changed with ver 3.0
Replies: 3
Views: 11600

Re: image size changed with ver 3.0

Thanks for reply!
Checked or not checked the result is the same (in the browser).
by morosh
Wed Jan 22, 2025 8:46 am
Forum: Coding Questions
Topic: image size changed with ver 3.0
Replies: 3
Views: 11600

image size changed with ver 3.0

Hello:
I made the following program:
EnableExplicit
Define txt.s

txt.s = ""
txt + "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAA8CAIAAAAxGKkLAAAACXBIW"
txt + "XMAAA7DAAAOwwHHb6hkAAAYZUlEQVR42u1ceVxN6f8/621RJFvR2MPYktJGYy1DioydFrvIliUh"
txt + "UWIyWpSd0YYwClPGJNKIFColWVNKRSq0d8 ...
by morosh
Tue Mar 16, 2021 9:22 am
Forum: Coding Questions
Topic: issue with structure of array
Replies: 2
Views: 3109

Re: issue with structure of array

thanks for reply!
In fact, I'm converting an OOP program made with PB, this is a small extract identifying the problem, I need the pointer.
Dim ptrfich.FICH1(5) allocate memory, but Dim *ptrfich.FICH1(5) don't, it's a pointer.
I just liked to know what's wrong in my previous post.
by morosh
Mon Mar 15, 2021 2:48 pm
Forum: Coding Questions
Topic: issue with structure of array
Replies: 2
Views: 3109

issue with structure of array

Hello:
I have problem with structure containing arrays, I can't assign array elements:
Structure FICH1
*vt.FICH_PTR
fnum.b
fname.s
fnamebrf.s
nbart.l
nbcol.w
larg.a[50]
flag.b[50]
align.s[50]
title.s[50]
champ.s[50]
largtot.l
start.q
largmax.a
txt.s
nocol_key.a
nocol_tot1.a ...
by morosh
Tue Jun 16, 2020 4:10 pm
Forum: Coding Questions
Topic: Can't read unicode file created by PB
Replies: 2
Views: 3929

Re: Can't read unicode file created by PB

Thank you
Meanwhile, I'll change my PB program to put explicitly 0D 00 as a line termination
by morosh
Thu May 28, 2020 2:51 pm
Forum: Coding Questions
Topic: Can't read unicode file created by PB
Replies: 2
Views: 3929

Can't read unicode file created by PB

Hello:
I need to read a unicode file created by PB, like:
OpenFile(0,"test.txt", #PB_Unicode)
WriteByte(0,255) ; signature
WriteByte(0,254) ; signature
WriteStringN(0,"ABCDEF", #PB_Unicode)
WriteStringN(0,"XYZTUV", #PB_Unicode)
WriteStringN(0,"KLMNOPQ", #PB_Unicode)
WriteStringN(0,"0123456", #PB ...