Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Illegal string-number conversion
#1
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"

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"
thank's
Reply


Messages In This Thread
Illegal string-number conversion - by Herve - 07-02-2025, 07:02 PM
RE: Illegal string-number conversion - by Jack - 07-02-2025, 07:08 PM
RE: Illegal string-number conversion - by Herve - 07-02-2025, 07:25 PM
RE: Illegal string-number conversion - by Herve - 07-06-2025, 08:54 AM
RE: Illegal string-number conversion - by a740g - 07-07-2025, 09:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximum Number of Attachments per Thread Magdha 7 447 01-13-2026, 10:13 AM
Last Post: Magdha
Question Experimenting with a "StringList" type for simpler handling of string arrays/lists Heimdall 18 1,184 12-19-2025, 12:51 PM
Last Post: Heimdall
  Sub not Reconizing Dim as String pmackay 18 1,448 10-16-2025, 03:32 PM
Last Post: pmackay
  Conversion From CBASIC eoredson 0 350 10-07-2025, 01:05 AM
Last Post: eoredson
  getting the number of dimensions in an array on the fly? madscijr 7 721 09-16-2025, 12:34 AM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)