/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
Reading one character from a string
Fra : Deforgel


Dato : 09-05-01 19:57

I have a variable string and I need to read a specific character at a specific
spot in the string and the spot in the string is always the same.

Example;

given the string "DOG"
characterat(0) = D
characterat(1) = O
characterat(2) = G

Any ideas would be appreciated. I tried using java but it need to be done
automatically without the user clicking anything.

Deforgel@aol.com

 
 
Jens Lykke Brandt (09-05-2001)
Kommentar
Fra : Jens Lykke Brandt


Dato : 09-05-01 23:45

Try using:
Mid(string, start, length)

Mid("DOG", 1, 1) gives D
Mid("DOG", 3, 1) gives G

/Jens Brandt

"Deforgel" <deforgel@aol.com> wrote in message
news:20010509145728.25851.00005019@ng-mq1.aol.com...
> I have a variable string and I need to read a specific character at a
specific
> spot in the string and the spot in the string is always the same.
>
> Example;
>
> given the string "DOG"
> characterat(0) = D
> characterat(1) = O
> characterat(2) = G
>
> Any ideas would be appreciated. I tried using java but it need to be done
> automatically without the user clicking anything.
>
> Deforgel@aol.com



Søg
Reklame
Statistik
Spørgsmål : 177556
Tips : 31968
Nyheder : 719565
Indlæg : 6408865
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste