basicprogramming.org


Welcome, Guest. Please login or register.
Did you miss your activation email?
Forum time; Jul 31. 2010, 02:02
Home Help Search Calendar Login Register
News: Have you got suggestions for BasicProgramming.org? Let's hear them!
Interested in creating your own programming language? Check out the QDepartment group!

+  BASIC programming forum
|-+  Basic Coding
| |-+  General Basic Programming
| | |-+  Projects.
| | | |-+  Table Object
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Reply Print
Author Topic: Table Object  (Read 204 times)
rdc
Sr. Member
****
Offline Offline

Posts: 289


Clark Productions


WWW
« on: Oct 13. 2009, 17:31 » Reply with quote

The Table object is a dynamically generated list object comprised of a set of rows, where each row is a set of columns that can be any type of standard, non-composite FreeBasic data type. Each column, or cell, in the Table is a TCell object that exposes a set of methods to set and retrieve the cell's data. Since the number of columns in a row is dynamically generated, each row can have a different number of columns and operates like a ragged array.

The TCell object supports the following FreeBasic data types:

  • BYTE
  • UBYTE
  • SHORT
  • USHORT
  • INTEGER
  • UINTEGER
  • LONG
  • ULONG
  • LONGINT
  • ULONGINT
  • SINGLE
  • DOUBLE
  • STRING

The Table object is useful for storing data in columnar format such as you might find in a database table, listview control or spreadsheet. However, since there is no requirement for the table to be square, it can also be used to store collections, used to replicate the functionality of an associated array or MS dictionary object, or as a storage object for associated data that may be of different formats.

v0.1 is available here. You should use -exx when compiling until you are confident that the object is working properly.

Report to moderator   Logged

E.K.Virtanen
Blah
Hero Member
*****
Offline Offline

Posts: 2441



WWW
« Reply #1 on: Oct 16. 2009, 14:22 » Reply with quote

From where the hell you get all these neat ideas?  Huh

Works fine with latest stable *nix version. Goin to have some not-so-serious-fun with this one  Grin Roll Eyes
Report to moderator   Logged

rdc
Sr. Member
****
Offline Offline

Posts: 289


Clark Productions


WWW
« Reply #2 on: Oct 16. 2009, 16:49 » Reply with quote

Heh. Necessity is the mother of invention or at least ideas. Smiley

Let me know if you have any problems.
Report to moderator   Logged

E.K.Virtanen
Blah
Hero Member
*****
Offline Offline

Posts: 2441



WWW
« Reply #3 on: Oct 17. 2009, 02:41 » Reply with quote

Let me know if you have any problems.

Boring part with your codes usually is, that there is no problems ever, except some minor platform things  Roll Eyes
Report to moderator   Logged

rdc
Sr. Member
****
Offline Offline

Posts: 289


Clark Productions


WWW
« Reply #4 on: Oct 17. 2009, 03:28 » Reply with quote

LOL. Next time I'll throw in a few bugs for some added excitement.  Cheesy
Report to moderator   Logged

aurelB
Hero Member
*****
Offline Offline

Posts: 663



WWW
« Reply #5 on: Oct 17. 2009, 03:36 » Reply with quote

rdc where i can find your program, I try link on FB forum but nothing Undecided
Report to moderator   Logged

E.K.Virtanen
Blah
Hero Member
*****
Offline Offline

Posts: 2441



WWW
« Reply #6 on: Oct 17. 2009, 04:18 » Reply with quote

LOL. Next time I'll throw in a few bugs for some added excitement.  Cheesy

Cool. When i do find a real bug, ill light up one Cuban cigar  Grin

aurelB; I uploaded file to our filehost, so grap it from there if rdc's link is broken.
Report to moderator   Logged

aurelB
Hero Member
*****
Offline Offline

Posts: 663



WWW
« Reply #7 on: Oct 17. 2009, 05:40 » Reply with quote

I dont understand what is wrong i download file from repository
and compile test .bas ,compile fine but refuse to start Huh
Report to moderator   Logged

E.K.Virtanen
Blah
Hero Member
*****
Offline Offline

Posts: 2441



WWW
« Reply #8 on: Oct 17. 2009, 06:04 » Reply with quote

Can you aurelB deliver output from compiling to firing it up? Any error messages?
Report to moderator   Logged

aurelB
Hero Member
*****
Offline Offline

Posts: 663



WWW
« Reply #9 on: Oct 17. 2009, 06:47 » Reply with quote

There is a problem program compile fine without error but when i try run
app run but only in background Huh
Report to moderator   Logged

rdc
Sr. Member
****
Offline Offline

Posts: 289


Clark Productions


WWW
« Reply #10 on: Oct 17. 2009, 09:01 » Reply with quote

You are probably compiling with -s gui, which only works for graphics programs. This is a console program, so take off the -s gui and it will work fine.
« Last Edit: Oct 17. 2009, 11:00 by rdc » Report to moderator   Logged

aurelB
Hero Member
*****
Offline Offline

Posts: 663



WWW
« Reply #11 on: Oct 18. 2009, 01:38 » Reply with quote

Ahh yes you right ,becose i dont make console apps.
Dont blame me i'm still very new with FB.
program is very interesting.
Report to moderator   Logged

Pages: [1] Go Up Reply Print 
« previous next »
Jump to:  
Atom RDF RSS 0.91 RSS 2.0


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!