problem with type and one bug

In this category you can exchange your programming questions and solutions.
Post Reply
dodogo
Posts: 3
Joined: Tue Nov 08, 2005 3:00 pm

problem with type and one bug

Post: # 504Post dodogo
Thu Oct 15, 2009 8:00 pm

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

fred
Posts: 54
Joined: Thu Apr 23, 2009 10:08 am

problem with type and one bug

Post: # 505Post fred
Sat Oct 17, 2009 7:55 am

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.

dodogo
Posts: 3
Joined: Tue Nov 08, 2005 3:00 pm

problem with type and one bug

Post: # 506Post dodogo
Sat Oct 17, 2009 5:34 pm

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?

Post Reply