Hello:
I couldn't make "create App" (Android) for an old program which was compiling well with an older version of SB.
My program is:
EnableExplicit
Define txt.s
txt.s = ""
txt + "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAA8CAIAAACsOWLGAAAACXBIW"
txt ...
Search found 24 matches
- Sat Mar 28, 2026 8:58 pm
- Forum: Coding Questions
- Topic: old program didn't "create app" Android
- Replies: 0
- Views: 438
- Fri Mar 27, 2026 6:52 pm
- Forum: Coding Questions
- Topic: The easiest way to store preferences for mi app?
- Replies: 11
- Views: 21561
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
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
- Wed Jan 22, 2025 1:55 pm
- Forum: Coding Questions
- Topic: Runprogram
- Replies: 8
- Views: 20053
- Wed Jan 22, 2025 10:00 am
- Forum: Coding Questions
- Topic: image size changed with ver 3.0
- Replies: 3
- Views: 11129
Re: image size changed with ver 3.0
Thanks for reply!
Checked or not checked the result is the same (in the browser).
Checked or not checked the result is the same (in the browser).
- Wed Jan 22, 2025 8:46 am
- Forum: Coding Questions
- Topic: image size changed with ver 3.0
- Replies: 3
- Views: 11129
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 ...
I made the following program:
EnableExplicit
Define txt.s
txt.s = ""
txt + "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAA8CAIAAAAxGKkLAAAACXBIW"
txt + "XMAAA7DAAAOwwHHb6hkAAAYZUlEQVR42u1ceVxN6f8/621RJFvR2MPYktJGYy1DioydFrvIliUh"
txt + "UWIyWpSd0YYwClPGJNKIFColWVNKRSq0d8 ...
- Tue Mar 16, 2021 9:22 am
- Forum: Coding Questions
- Topic: issue with structure of array
- Replies: 2
- Views: 2888
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.
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.
- Mon Mar 15, 2021 2:48 pm
- Forum: Coding Questions
- Topic: issue with structure of array
- Replies: 2
- Views: 2888
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 ...
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 ...
- Tue Jun 16, 2020 4:10 pm
- Forum: Coding Questions
- Topic: Can't read unicode file created by PB
- Replies: 2
- Views: 3651
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
Meanwhile, I'll change my PB program to put explicitly 0D 00 as a line termination
- Thu May 28, 2020 2:51 pm
- Forum: Coding Questions
- Topic: Can't read unicode file created by PB
- Replies: 2
- Views: 3651
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 ...
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 ...
- Sat Jan 04, 2020 9:40 am
- Forum: Coding Questions
- Topic: Gadget scrolling down
- Replies: 13
- Views: 19290
Re: Gadget scrolling down
I tried Peter'example with a ListIcon, it didn't works, no scrolling with buttons, may be I'm missing something:
EnableExplicit
Enumeration
#myWindow
#cmdScrollDown
#cmdScrollUp
#myListIconGadget
EndEnumeration
Procedure EditorScrollDown()
Protected Selector = GadgetID(#myListIconGadget ...
EnableExplicit
Enumeration
#myWindow
#cmdScrollDown
#cmdScrollUp
#myListIconGadget
EndEnumeration
Procedure EditorScrollDown()
Protected Selector = GadgetID(#myListIconGadget ...