TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kate 0
NA
15
0
passing to an array in a smart device application
Feb 21 2005 5:05 PM
Hi, im attempting to read from a text file containing data split into ten items of data per row, each separated by a ':', e.g. Dave:38 Years:Male:Brown Hair:45L:345uyb:12445:477:67:12 John:29 Years: etc etc The code below works fine at reading into an array in a vb.net windows app, however im trying to develop a small mobile application and thereofe i'm using the smart device application framework. When i run it, i'm gettin the error - 'The targeted version of the .NET framework does not support latebinding' and i am directed to the line shown in bold in the code below. Im pretty new to programming in VB.NET and even newer to mobile applications, i was wondering if anyone could suggest a different way of tackling this (also what exactly is latebinding????) - any coding tips would be of a great benefit as im struggling to fiind any decent documentation anywhere. Heres what i have for now, as i said it runs fine on windows applications, but place it in a smart device application and it doesn't like it. visual basic code:-------------------------------------------------------------------------------- Imports System.IO Public Class Form1 Inherits System.Windows.Forms.Form Windows Form Designer generated code Dim sr1 As StreamReader = File.OpenText("C:\Documents and Settings\Mark\My Documents\Visual Studio Projects\Project\Prototype V2\feeds.text") Dim arrInfoTemp(9) As String Dim arr1 As Array Dim sStr1 As String Dim iCount As Integer Dim arrInfoCount As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load arrInfoCount = -10 Do Until sr1.Peek = -1 arrInfoCount += 10 sStr1 = sr1.ReadLine arr1 = Split(sStr1, ":") ReDim Preserve arrInfoTemp(arrInfoCount + 10) For iCount = 0 To 9 arrInfoTemp(arrInfoCount + iCount) = arr1(iCount) Next ReDim Preserve arrInfoTemp(arrInfoCount + 9) Loop sr1.Close() arrInfoCount = arrInfoTemp.GetUpperBound(0) Dim arrInfo((arrInfoCount + 1) / 10 - 1, 10) As String For iCount = 0 To (arrInfoCount + 1) / 10 - 1 For arrInfoCount = 0 To 9 arrInfo(iCount, arrInfoCount) = arrInfoTemp(iCount * 10 + arrInfoCount) Next Next End Sub End Class
Reply
Answers (
0
)
Is it possible ???
Accepting Keyboard Input