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.
Search found 19 matches
- Tue Mar 16, 2021 9:22 am
- Forum: Coding Questions
- Topic: issue with structure of array
- Replies: 2
- Views: 1091
- Mon Mar 15, 2021 2:48 pm
- Forum: Coding Questions
- Topic: issue with structure of array
- Replies: 2
- Views: 1091
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 nocol_tot2.a nocol_color....
- Tue Jun 16, 2020 4:10 pm
- Forum: Coding Questions
- Topic: Can't read unicode file created by PB
- Replies: 2
- Views: 1628
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: 1628
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_Un...
- Sat Jan 04, 2020 9:40 am
- Forum: Coding Questions
- Topic: Gadget scrolling down
- Replies: 13
- Views: 7895
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) ! $(v_selec...
- Wed Jan 01, 2020 5:58 pm
- Forum: Coding Questions
- Topic: about listicons
- Replies: 0
- Views: 3045
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 ...
- Fri Nov 29, 2019 12:04 pm
- Forum: Coding Questions
- Topic: equivalent to SetEndOfFile_()?
- Replies: 6
- Views: 2077
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
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
- Thu Nov 28, 2019 5:33 pm
- Forum: Coding Questions
- Topic: equivalent to SetEndOfFile_()?
- Replies: 6
- Views: 2077
Re: equivalent to SetEndOfFile_()?
Thank you Danilo
Perfect, exactly what I'm searching for.
By the way, I need also to CopyFile which is simple to implement (copying line by line), but is there something shorter with JS.
Also later I need to delete temporary files, no delete actually available
Regards
Perfect, exactly what I'm searching for.
By the way, I need also to CopyFile which is simple to implement (copying line by line), but is there something shorter with JS.
Also later I need to delete temporary files, no delete actually available
Regards
- Tue Nov 26, 2019 5:49 pm
- Forum: Coding Questions
- Topic: equivalent to SetEndOfFile_()?
- Replies: 6
- Views: 2077
equivalent to SetEndOfFile_()?
Hello:
is there any equivalent to the win api SetEndOfFile_()?
thanks
is there any equivalent to the win api SetEndOfFile_()?
thanks
- Mon Nov 25, 2019 3:32 pm
- Forum: Coding Questions
- Topic: about interfaces
- Replies: 2
- Views: 1318
Re: about interfaces
Thanks Danilo!! I'll try that