corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » vb, c# or any other programing experts


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author vb, c# or any other programing experts
Jodi_the_g
Member

Registered: 7th Aug 01
Location: Washington D.C
User status: Offline
14th Feb 08 at 08:27   View User's Profile U2U Member Reply With Quote

I have a file with data such as

'b11224984908948092

I have coded so the file is loaded and read row by row

using
rowFromFile=textInput.ReadLine
do you know how I could select a certain charater in that line say the first 1 and ingore the rest

something like 'rowFromFile, Chr(2))'
Dom
Member

Registered: 13th Sep 03
User status: Offline
14th Feb 08 at 09:59   View User's Profile U2U Member Reply With Quote

use the mid() function

example -

sString = "b11224984908948092"
Mid(sString, 1, 1) would equal "b" etc

[Edited on 14-02-2008 by Dom]
James
Member

Registered: 1st Jun 02
Location: Surrey
User status: Offline
14th Feb 08 at 11:24   View User's Profile U2U Member Reply With Quote

In C# you can just do it like this:

stringOne[10]

Would get you the 10th character in a string variable called stringOne.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
HorsePower atomicsheep Help Zone, Modification and ICE Advice 54 9286
2nd Jun 09 at 12:22
by Ellis
 
shite day so far baz2003uk Help Zone, Modification and ICE Advice 16 655
15th Feb 04 at 23:11
by Greg12v
 
new ecu will key need programing?? glennpanton General Chat 2 112
27th Jun 05 at 16:37
by glennpanton
 
New features in Location Services Ian General Chat 36 582
4th Nov 05 at 18:09
by Ian
 
Programming help anyone VB.NET RS6 Geek Day 3 142
9th Jan 06 at 20:47
by Jodi_the_g
 

Corsa Sport » Message Board » Off Day » Geek Day » vb, c# or any other programing experts 29 database queries in 0.0074961 seconds