Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot convert expression type to symbol
#4
COMMON SHARED was also used back in the QJurassic Era when you needed to pass variables to modules in multi-modular programs. Using multi-modular programming allowed for more than the 64K single module limit. I think I used to pull about 220K with that method. Note because memory was and still is allocated for different processes unevenly, it was darn near impossible to write a program that would end up being 256K.

Anyway, back to the point. Yes, whenever possible a line number should be reported by the IDE. Steve, when he is feeling better, or Matt may want to have a look at adding line number recognition.

Also, even with DIM SHARED, we have to define the elements in the array...

DIM SHARED test(100) AS STRING * 256

or ...
DIM SHARED test(0) AS STRING * 256

...and

REDIM test(100) ' Sometime later.

Unfortunately, arrays were not able to be made into types.

Pete
Reply


Messages In This Thread
RE: Cannot convert expression type to symbol - by Pete - 09-25-2022, 09:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Experimenting with a "StringList" type for simpler handling of string arrays/lists Heimdall 18 1,193 12-19-2025, 12:51 PM
Last Post: Heimdall
  for performance, what's the best variable type to use for boolean _TRUE & _FALSE ? madscijr 12 1,230 09-29-2025, 02:59 PM
Last Post: dakra137
  Loading from file into _MEM? and LEN a TYPE... Unseen Machine 9 960 08-03-2025, 02:55 AM
Last Post: SMcNeill
  anyone good at javascript want to help convert a cool animation to QB64PE? madscijr 10 1,359 05-21-2025, 09:47 PM
Last Post: hsiangch_ong
  QB64's TYPE / END TYPE inquiry MystikShadows 2 896 06-30-2024, 02:34 PM
Last Post: MystikShadows

Forum Jump:


Users browsing this thread: 1 Guest(s)