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.

possible to give values to arrays in Sub Globals?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2008, 10:07 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default possible to give values to arrays in Sub Globals?

Hi,

Maybe a stupid question but I couldn't find an answer to it. In other languages it is possible to declare an array and immediately give it a value, e.g.
DIM Array(10) = (1,2,3,4,5,6,7,8,9)
This is not possible in Basic4PPC? I have to give every entry a single line?
array(0) = 1
array(1) = 2
array(2) = 3
etc. etc. ?
thnx
Marc
Reply With Quote
  #2 (permalink)  
Old 02-17-2008, 11:34 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

See this post: http://www.basic4ppc.com/forum/code-samples-tips/1534-filling-arrays.html
Reply With Quote
  #3 (permalink)  
Old 02-17-2008, 12:10 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Posts: 269
Default

Erel, that's it!!
Again that StrSplit function that has magical possibilities!
thnx
Marc
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
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
V6-not-optim, V6-Debug, and V6-optimised give not the same nested FOR-NEXT execution dan kabestan Questions (Windows Mobile) 1 01-04-2008 07:17 PM
Arrays of any size Gale Johnson Code Samples & Tips 5 08-17-2007 04:55 AM
Give me an idea conf Questions (Windows Mobile) 6 07-03-2007 06:18 PM


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


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