Search found 22 matches

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

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: 8104

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: 8104

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: 2615

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: 2615

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: 3281

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: 3281

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 ...
by morosh
Sat Jan 04, 2020 9:40 am
Forum: Coding Questions
Topic: Gadget scrolling down
Replies: 13
Views: 15846

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 ...
by morosh
Wed Jan 01, 2020 5:58 pm
Forum: Coding Questions
Topic: about listicons
Replies: 0
Views: 4552

about listicons

Hello:
I have two problems with listicons:
First, on web and android, columns width isn't correct, in the example below I create a listicons and some stringgadgets just above with same width, I noticed columns not aligned with corresponding stringgadget.
#wid1=40
#wid2=30
#wid3=60
#wid4=20
#wid5=50 ...
by morosh
Fri Nov 29, 2019 12:04 pm
Forum: Coding Questions
Topic: equivalent to SetEndOfFile_()?
Replies: 6
Views: 5971

Re: equivalent to SetEndOfFile_()?

thank you Danilo
my files are on the server side, sometimes I need to do some processing, so I need to create a temporary file, fill it correctly, then copy it to the main file, then delete it (always server side).

Regards