RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums
Views: 1093 | Replies: 3 | Solved
Reply
Join Date: Aug 2007
Posts: 6
Reputation: xiyann is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xiyann's Avatar
xiyann xiyann is offline Offline
Newbie Poster

Help how to map objects to array

  #1  
Aug 15th, 2007
i have these objects:
[ ['John', 27.52], ['Mary', 43.32], ['Paul', 64.85], ['Lulu', 98.23], ['Peter', 23.64]
['Mimi', 53.42], ['Nancy', 23.63] ]
and i need to assign them to:
var1 = ['John', 27.52]
var2 = ['Mary', 43.32]
var3 = ['Paul', 64.85]
var4 = ['Lulu', 98.23]
var5 = ['Peter', 23.64]
var6 = ['Mimi', 53.42]
var7 = ['Nancy', 23.63]

i've tried :
  1. Public Structure extracted
  2. Dim name As String
  3. Dim score As Double
  4. End Structure

  1. Dim test(6) As extracted

  1. test(0) = ret(0)
and etc

but it can't work

anyone can help?
Attached Images
File Type: jpg problem1.JPG (127.2 KB, 0 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Posts: 6
Reputation: xiyann is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xiyann's Avatar
xiyann xiyann is offline Offline
Newbie Poster

Re: how to map objects to array

  #2  
Aug 15th, 2007
ret(0)(1)
Reply With Quote  
Join Date: Dec 2002
Location: West Virginia
Posts: 412
Reputation: waynespangler is on a distinguished road 
Rep Power: 6
Solved Threads: 45
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: how to map objects to array

  #3  
Aug 16th, 2007
What is ret(0)?
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote  
Join Date: Aug 2007
Posts: 6
Reputation: xiyann is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xiyann's Avatar
xiyann xiyann is offline Offline
Newbie Poster

Re: how to map objects to array

  #4  
Aug 16th, 2007
ret is the array i defined to accept the value from the tuple
anyway, i've solved the prob by assigning the tuple to a multidimensional array

ret(0)(1)

thanks
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:29 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC