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.

Array inside Struct

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2008, 03:06 PM
Junior Member
 
Join Date: May 2008
Posts: 19
Default Array inside Struct

Hi all.

I wonder if it's possible to have an array inside a struct.

I mean if i can do something like this...

Code:
Dim Type (x, y, value, rotate, status, move(x, y)) Piece(BWIDTH, BHEIGHT)
...or if there are any possibilities to do it.

Best Regards, fjsantos.
________
RGV250

Last edited by fjsantos : 01-24-2011 at 10:40 PM.
Reply With Quote
  #2 (permalink)  
Old 06-17-2008, 03:19 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This is not possible.
Structs are in fact "named" arrays. During compilation structs are converted to arrays by changing the fields names to their corresponding indexes.
Reply With Quote
  #3 (permalink)  
Old 06-17-2008, 04:28 PM
Junior Member
 
Join Date: May 2008
Posts: 19
Default

Ok then.

Thanks!

Best Regards, fjsantos.
________
silver surfer reviews

Last edited by fjsantos : 01-24-2011 at 10:40 PM.
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
Nullifying an Array mjcoon Questions (Windows Mobile) 1 06-20-2008 05:20 PM
Representing Unsigned Values Inside Basic4ppc itself Louis Questions (Windows Mobile) 6 11-12-2007 08:21 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
Move an image inside an image control Cableguy Questions (Windows Mobile) 5 05-14-2007 07:40 PM


All times are GMT. The time now is 07:22 AM.


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