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() as RETURNCODE in SUB

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-04-2009, 11:28 PM
Junior Member
 
Join Date: Dec 2008
Posts: 31
Post array() as RETURNCODE in SUB

I wrote as sub like this (in globals is the dim too)

sub func_test()
dim te(0)
return te()
end sub


Work fine in Destop IDE , when I compile I get an error (Device/Windows.exe)

Error: CS0266, Canīt convert type Object to string
Reply With Quote
  #2 (permalink)  
Old 02-05-2009, 06:18 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Currently you can only return regular (non array) variables.
Reply With Quote
  #3 (permalink)  
Old 02-05-2009, 10:32 AM
Junior Member
 
Join Date: Dec 2008
Posts: 31
Default

Iīm new to basic4ppc.
Itīs confusing that it runs in the IDE without errors, but compiling seems to be different.

Is there a list about the differences between IDE running <-> Device <-> Windows.exe

The same problem with the different behavior of the combobox, IDE editable, Device not editable and Windows.exe editable.
Reply With Quote
  #4 (permalink)  
Old 02-05-2009, 06:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I will file it as a bug. The IDE should have show an error just like the compiler.
Reply With Quote
  #5 (permalink)  
Old 02-05-2009, 08:38 PM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 295
Awards Showcase
Beta Tester 
Total Awards: 1
Default

you can return it as a string and use split to get it into the array
works for me :-)
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
filedel and filecopy no returncode ? kohle Questions (Windows Mobile) 4 02-02-2009 05:36 PM
Array of control bdiscount Basic4ppc Wishlist 6 11-20-2008 03:09 PM
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
More Dimensional Array Xardas Questions (Windows Mobile) 4 07-01-2007 02:11 PM


All times are GMT. The time now is 03:46 AM.


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