Page 1 of 1

problem with type and one bug

Posted: Thu Oct 15, 2009 8:00 pm
by dodogo
Hi everybody.
Bug first.in fuction when I have between RESULT and = ("RESULT ?=") two spaces, i read some like "var. RESULT not be declared.

And my problem.
I try use some like this
type mytype
dim a as byte
dim b as byte
dim c as short
end type

dim mt as mytype

print len(mt)

i can not do this. I can not write to this structure from filestreem.
And when I use this..
d = len(mt)
compiler say, mt is stil used on line 47 an all program have 29 lines

help me somebody?
thx dodo

problem with type and one bug

Posted: Sat Oct 17, 2009 7:55 am
by fred
I did some testing.
The len() function is for strings, not for records.
You need a sizeof() function but i found it not in the help file.
I tried some other things but had not much time and it did not work.
The new version has a Sizeof() function but i have not tried it yet.

problem with type and one bug

Posted: Sat Oct 17, 2009 5:34 pm
by dodogo
thx fred.
I have new problems. I write two function. I have inside variable with same names. In second function compiler say  same like...variable is not declared. when i change name, result is same. maybe problem with "white" characters? Or any other?