Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'quick' substring
Message
De
29/01/1999 14:44:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
28/01/1999 14:44:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00181462
Message ID:
00181958
Vues:
10
>Don't I remember some sort of syntax to refer to the nth character in a string without using the substring function? It was along the line of MyString<3> or something, for example, to get the third character - (and no, I'm not confusing array functions). Anybody rememeber/know this or am I getting mixed up with another language I used at some point?
>
>thanks - Ken

Last language I remember that you had to use array-like notation to get a substring, used syntax like this:

subst(a, 3,1) a$(3)
subst(a, 3) a$(3 TO)
subst(a, 3, 5) a$(3 TO 7)
left(a,4) a$(TO 4)

The language was called Spectrum Basic, worked on Sinclair's (aka Timex) machines back in 1983. Thanks for refreshing memories :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform