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, 10:23 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 117
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, 04:01 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 154
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 SP2 / Basic4PPC v6.3
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #3 (permalink)  
Old 05-15-2008, 06:59 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 117
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, 09:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,724
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
Newbie Question Stevenator65 Questions & Help Needed 9 05-30-2008 08:53 PM
SQLite external library newbie question JamesC Questions & Help Needed 2 05-29-2008 03:48 AM
Another newbie question: How to refere to the active form? yildi Questions & Help Needed 2 11-17-2007 07:55 PM
Newbie - question about loadXML yildi Questions & Help Needed 6 11-12-2007 11:43 PM
Tables J12345T Questions & Help Needed 6 07-09-2007 09:04 PM


All times are GMT. The time now is 06:20 PM.


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