07-02-2025, 07:02 PM
Hello,
I am new to this forum and also to using QB64PE.
Here is a piece of code that causes the following error.
Could you tell me what is wrong?
Illegal string-number conversion
Caused by (or after):GLOP . ELEMENT . S = "Home",4
LINE 15:glop.element.s = "Home"
thank's
I am new to this forum and also to using QB64PE.
Here is a piece of code that causes the following error.
Could you tell me what is wrong?
Illegal string-number conversion
Caused by (or after):GLOP . ELEMENT . S = "Home",4
LINE 15:glop.element.s = "Home"
Code: (Select All)
type SomeType
i as Integer
s as string
d as double
end type
type OtherType
element as SomeType
end type
dim shared glop.element as OtherType
glop.element.I = 1
glop.element.d = 5.726E45
glop.element.s = "Home"


![[Image: Rules-for-naming-variables-in-Qbasic.png]](https://i.ibb.co/ymNFPdBv/Rules-for-naming-variables-in-Qbasic.png)
![[Image: Rules-of-DOT-in-naming-an-UDT-variables-by-TYPES.png]](https://i.ibb.co/dsMB8RRY/Rules-of-DOT-in-naming-an-UDT-variables-by-TYPES.png)
![[Image: Rules-ofnamingvariables-by-DIM.png]](https://i.ibb.co/39VtR3nd/Rules-ofnamingvariables-by-DIM.png)