Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Experimenting with a "StringList" type for simpler handling of string arrays/lists
#8
I confess when I first looked at Heimdall's original post all I saw were array routines, I totally missed this part:
Quote:It seems that QB64 has no "list" data type, but only arrays. Since I have an irrational fear of arrays, I am experimenting with creating a "StringList" container instead, which behind the scenes is based on arrays, but will keep me away from most of the work related to dealing with array sizes etc. and provides a few nifty functions for handling the list.

Looking over again Heimdall's routines it seems a hell of allot more work to say:
MyArr(n) = 200
value = MyArr(n)

Translate those 2 easy straight forward statements into Heimdall's StringList routines, yikes!
Apologies @Heimdall if I am not empathic to your phobia for arrays, it just strikes me as a strange way to overcome that phobia because you are still using arrays to store info but are using an even more complicated system. 

Kudos though for not letting fear prevent you from coding!

I have learned that the best way to overcome a phobia is to gently and slowly limit exposure to the fear producing obstacle until you are acclimated to it's presence. I have a thing about spiders but drawing them in QB64 has done much for the heebee geebee's in fact I am facinated by their structure, when I know they aren't going to crawl all over me I will study one, One! Smile
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: Experimenting with a "StringList" type for simpler handling of string arrays/lists - by bplus - 12-16-2025, 10:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sub not Reconizing Dim as String pmackay 18 1,476 10-16-2025, 03:32 PM
Last Post: pmackay
  for performance, what's the best variable type to use for boolean _TRUE & _FALSE ? madscijr 12 1,256 09-29-2025, 02:59 PM
Last Post: dakra137
  Using modulo to loop through lists fistfullofnails 3 723 09-03-2025, 11:50 PM
Last Post: fistfullofnails
  Loading from file into _MEM? and LEN a TYPE... Unseen Machine 9 976 08-03-2025, 02:55 AM
Last Post: SMcNeill
  Illegal string-number conversion Herve 7 774 07-07-2025, 09:53 AM
Last Post: a740g

Forum Jump:


Users browsing this thread: 1 Guest(s)