Home
Screenshots
Showcase
Features
Download
Purchase
Online Community
Documentation
Contact Us
Download the free trial version
Features
Tutorials and manuals
Showcase
Screenshots
Android Development Forum - Basic4android
>
Basic4ppc (Windows Mobile)
>
Code Samples & Tips
How to redimension an array of structures
User Name
Remember Me?
Password
Documentation Wiki
Register
Members List
B4P Search
Today's Posts
Mark Forums Read
Code Samples & Tips
Share your recent discoveries and ideas with other users.
How to redimension an array of structures
LinkBack
Thread Tools
Display Modes
#
1
(
permalink
)
02-20-2008, 10:18 AM
HARRY
Basic4ppc Veteran
Join Date: Apr 2007
Location: Netherlands
Posts: 222
How to redimension an array of structures
Hi,
In Sub Globals I declared:
Dim Type (a,b,c,d) S (0) As Int32
When the program is running, I find out the number of structures I need. How can I redimension this array?
Harry
#
2
(
permalink
)
02-20-2008, 10:36 AM
Erel
Administrator
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Total Awards
: 1
You should use:
Code:
Dim
S(x,
4
)
'
x - number of structures. 4 -number of fields
#
3
(
permalink
)
02-20-2008, 11:17 AM
agraham
Basic4ppc Expert
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Total Awards
: 3
If for some reason you really want the array to be of type Int32 then you will need
Dim (x,4) As Int32
otherwise you will get a normal (string) array.
#
4
(
permalink
)
02-20-2008, 11:53 AM
HARRY
Basic4ppc Veteran
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Thanks both of you for the prompt Help
Harry
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1
(0 members and 1 guests)
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
Legal Structures ??
adbftrainer
Questions (Windows Mobile)
9
09-09-2008
05:54 PM
Create an array of structures
serge
Questions (Windows Mobile)
1
06-21-2008
07:55 PM
How to declare array of structures of bytes
HARRY
Questions (Windows Mobile)
3
02-13-2008
04:28 PM
Structures & Uppercase
skipper
Questions (Windows Mobile)
4
02-06-2008
06:00 AM
Array of Array possibility?
Stellaferox
Basic4ppc Wishlist
0
09-18-2007
12:16 PM
All times are GMT. The time now is
09:43 PM
.
Contact Us
-
Basic4android - Android programming
-
Top
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by
vBSEO
3.3.0
LinkBack
LinkBack URL
About LinkBacks