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.

Filling an array or structure.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2008, 07:57 PM
enonod's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: U.K.
Posts: 324
Default Filling an array or structure.

I have tried various combinations without success.
can anybody please tell me, if it is possible to fill an array or structure in some way such as...
myArray=[[1,2],[3,4]]

to avoid the tedious...
myArray(0,0)=1
myArray(0,1)=2
myArray(1,0)=3
...
Reply With Quote
  #2 (permalink)  
Old 05-01-2008, 08:24 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Erels' suggestion http://www.basic4ppc.com/forum/code-samples-tips/1534-filling-arrays.html Use StrSplit

EDIT : I just realised you want to fill a 2D array - this may not help then.

Last edited by agraham : 05-01-2008 at 08:26 PM.
Reply With Quote
  #3 (permalink)  
Old 05-01-2008, 09:51 PM
enonod's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: U.K.
Posts: 324
Default

@badkarma, that looks interesting thank you, I'll have a play with it.
@agraham, thanks and I'll still look at the reference, there may be something in it.
Reply With Quote
  #4 (permalink)  
Old 05-02-2008, 08:22 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Looks like Erel read your mind. From this post http://www.basic4ppc.com/forum/announcements/2228-basic4ppc-v6-30-beta-will-released-next-week-post12033.html
" Array methods - Including methods to easily fill 1d arrays and 2d arrays."
Reply With Quote
  #5 (permalink)  
Old 05-02-2008, 11:56 AM
enonod's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: U.K.
Posts: 324
Default

Thank you very much agraham. Sorry I didn't find it myself.
[Edit] Seeing the date I now know why.

Last edited by enonod : 05-02-2008 at 11:58 AM.
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
Header structure Erel Beta Versions 3 08-27-2008 07:37 PM
Filling 2-D arrays. grgczyz Basic4ppc Wishlist 1 02-14-2008 11:38 AM
Filling arrays Erel Code Samples & Tips 3 01-13-2008 05:11 PM
Newbie-Filling a table but selected fields enonod Questions (Windows Mobile) 7 10-13-2007 12:24 PM
Structure variables Erel Code Samples & Tips 0 05-19-2007 10:36 AM


All times are GMT. The time now is 09:23 AM.


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