Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

More Dimensional Array

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2007, 09:20 PM
Newbie
 
Join Date: Jun 2007
Posts: 3
Default More Dimensional Array

Hello out there.

Well I've got a littel problem with arrays.
I wantet a array including another array that includes one last array, I wantet to make a little Map with x and y coords. So like :

worldpart ( x (y ( name, typ)))

Is there any way to get a such an array?
Thx for Help^^
Reply With Quote
  #2 (permalink)  
Old 06-27-2007, 03:57 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can use a multi-dimension array or structure:
Dim Map(100,100)
Map(x,y) = 2

Or:
Dim Type(Color,Value) Map(100,100)
Map(x,y).Color = cBlue
Reply With Quote
  #3 (permalink)  
Old 06-27-2007, 11:47 AM
Newbie
 
Join Date: Jun 2007
Posts: 3
Default

That's exaclty what I want ^^ Thx

Last edited by Xardas : 07-01-2007 at 01:37 PM.
Reply With Quote
  #4 (permalink)  
Old 07-01-2007, 01:38 PM
Newbie
 
Join Date: Jun 2007
Posts: 3
Default

But now i have another question, is it possible to make a array like
Dim type(color,value) map(x,y,id) so like
Dim type(color,value) map(200,200,300) ?
Or is there a way to get the x and y coords if i have the id and an array like this

dim type(color,value,id) map(x,y) ?
Reply With Quote
  #5 (permalink)  
Old 07-01-2007, 02:11 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

When working with structures you are limited to two dimensions (two dimensions structures will be converted at runtime to three dimension 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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting library for QR barcode (dimensional) bluedude Questions (Windows Mobile) 12 03-22-2009 11:05 PM
Nullifying an Array mjcoon Questions (Windows Mobile) 1 06-20-2008 05:20 PM
How to redimension an array of structures HARRY Code Samples & Tips 3 02-20-2008 11:53 AM
Array but not array Cableguy Questions (Windows Mobile) 1 09-22-2007 08:09 PM
Array of Array possibility? Stellaferox Basic4ppc Wishlist 0 09-18-2007 12:16 PM


All times are GMT. The time now is 04:39 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0