Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Newbie question - arrays and tables


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2008, 11:23 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 143
Default Newbie question - arrays and tables

Dear All,

could someone tell me what the advantage of using arrays instead of a hidden table is? To my (admittedly naive) understanding they seem very similar.

all the best / Björn
Reply With Quote
  #2 (permalink)  
Old 05-15-2008, 05:01 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default

I would think that a table would have advantages over an array. While a table probably consumes more memory (one of the true gurus could tell you for certain), it has the built-in ability to (1) ensure that a given cell in a given column is unique; (2) sort the data it contains; and (3) filter the data. Tables can be either case-sensitive or not, which affects all three.

A table also has the built-in ability to load or save data from either a CSV or XML file, which is extremely handy in all sorts of situations.


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #3 (permalink)  
Old 05-15-2008, 07:59 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 143
Default

Hmm, yes I understand. But then the question is why arrays are a good thing...

all the best / Björn
Reply With Quote
  #4 (permalink)  
Old 05-15-2008, 10:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Tables are much heavier (memory and speed) than arrays.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLite newbie question JamesC Chit Chat 1 08-01-2008 09:26 AM
Newbie Question Stevenator65 Questions & Help Needed 9 05-30-2008 09:53 PM
SQLite external library newbie question JamesC Questions & Help Needed 2 05-29-2008 04:48 AM
Another newbie question: How to refere to the active form? yildi Questions & Help Needed 2 11-17-2007 08:55 PM
Newbie - question about loadXML yildi Questions & Help Needed 6 11-13-2007 12:43 AM


All times are GMT. The time now is 03:14 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0