Menu

Tables

Help
J Olson
2009-06-06
2013-05-30
  • J Olson

    J Olson - 2009-06-06

    Can I assume tables cannot contain word size data, only byte size data?
    Could not find any ref. to data type size "in" the table itself.
    Example:

    Dim temp as word

    ReadTable my_table, 5, temp

    Table my_table
    500
    502
    504
    606
    600
    602
    604
    700
    end table

     
    • Hugh Considine

      Hugh Considine - 2009-06-17

      Data tables could only store bytes, but I've made a few alterations and now tables can also store word values. No need to define the type of the table, GCBASIC will automatically detect whether the table holds bytes or words.

      Updates are in the usual place, http://gcbasic.sourceforge.net/newfiles/update.zip or http://gcbasic.sourceforge.net/newfiles/update-nochipdata.zip . That code snippet you posted should be fine.

       
    • J Olson

      J Olson - 2009-06-18

      Thanks Hugh, this will come in very handy on my current project.
      I'll test it out tonight.

      Mz

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.