Sorry Trixx, but I haven't got a good english...
Look at that code, it's the basic of what I want to use :
Do not look for global or local Type. I use my Type into 2 functions : one to creat new Type, and on to make some maths on it.
The code works, and I assume that Type are in this way Global, because I can use them into two functions.
The probleme is, when you cut and past this code into IDEal, the variables of my Type are in red, so IDEal thinks that they are not declared variables.
My question is "Why" ?
Look at that code, it's the basic of what I want to use :
Type T00 Field T00v10v00% End Type Function GESTION00A() T00.T00=New T00 T00\T00v10v00=Rand(0,9) Print T00\T00v10v00 End Function Function OBJET00A() For T00.T00=Each T00 T00\T00v10v00=(T00\T00v10v00+1) Print T00\T00v10v00 Next End Function Repeat GESTION00A() OBJET00A() Print "" WaitKey Delete Each T00 Until KeyDown(1)
Do not look for global or local Type. I use my Type into 2 functions : one to creat new Type, and on to make some maths on it.
The code works, and I assume that Type are in this way Global, because I can use them into two functions.
The probleme is, when you cut and past this code into IDEal, the variables of my Type are in red, so IDEal thinks that they are not declared variables.
My question is "Why" ?