Oups, forget to join the source! Dominique SIMONART a écrit : > Jussi (sorry for the preceding Julien) > > I wonder if our problems are really the same! > Here is more details of my situation. As you can see, the READ should > know that the datatype of hMyClas[i].X *is* a byte > > hMyClass.Resize(9) > FOR i = 0 TO 8 > hMyClass[i] = NEW MyClass > ' using these two 2 instructions works fine > READ #hFile, N > hMyClass[i].X = N > ' using this one ends with Signal 11 message > ' READ #hFile, hMyClass[i].X > NEXT > > If you want to test, I join the complete source (with the file to read) > as it is very small (15.4K) > regards > Dominique Simonart > > Simonart Dominique a écrit : > >> Hi Julien, >> You are right! >> I read your post and I understand the reason, >> but you don't speak about Signal 11, so I was thinking for >> another problem although similar >> >> regards, >> Dominique Simonart >> >> Jussi Lahtinen a écrit : >> >> >>> Hi! >>> >>> Is hMyClass declared as Object[] ? >>> If so, READ cannot recognise hMyClass[i].X as byte. >>> See my earlier post "Minor bug with READ & WRITE commands?". >>> I think you have same problem than I did, and in fact it is not bug. >>> >>> >>> Jussi >>> >>> >>> >>> On Thu, Jan 22, 2009 at 1:06 AM, Dominique SIMONART >>> <simonart.domini...@wanadoo.fr> wrote: >>> >>> >>>> Hi everybody, >>>> >>>> Gambas 2.8, OpenSuse 11.0, Kde 3.5, with Qt >>>> If I initialize my property with the next 2 lines, it's OK ( N and >>>> the X property are defined as Byte, i is an Integer) >>>> >>>> READ #hFile, N >>>> hMyClass[i].X = N >>>> >>>> But if I want to write it shorter with the line below, it ends with >>>> a signal 11! >>>> >>>> READ #hFile, hMyClass[i].X >>>> >>>> Why? >>>> Thanks for your help >>>> Dominique Simonart >>>> >>>> >>>>
TestSignal11.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user