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.


Array inside Struct


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2008, 04:06 PM
Junior Member
 
Join Date: May 2008
Posts: 19
Question 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.
Reply With Quote
  #2 (permalink)  
Old 06-17-2008, 04:19 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,186
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, 05:28 PM
Junior Member
 
Join Date: May 2008
Posts: 19
Default

Ok then.

Thanks!

Best Regards, fjsantos.
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
Nullifying an Array mjcoon Questions & Help Needed 1 06-20-2008 06:20 PM
Representing Unsigned Values Inside Basic4ppc itself Louis Questions & Help Needed 6 11-12-2007 09:21 AM
Array but not array Cableguy Questions & Help Needed 1 09-22-2007 09:09 PM
Array of Array possibility? Stellaferox Basic4ppc Wishlist 0 09-18-2007 01:16 PM
Move an image inside an image control Cableguy Questions & Help Needed 5 05-14-2007 08:40 PM


All times are GMT. The time now is 01:42 PM.


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