Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find character in string
Message
 
À
11/01/2015 04:00:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01613402
Message ID:
01613415
Vues:
59
fantastic greg - well done -
that solves a lot of problems!
thanks so much
k



>>I have a character string in a field called rinfo and am trying to locate the position of the colon.
>>
>>rinfo='I am looking for the : in this string'
>>
>>is there a tidier way to do this than what I have
>>
>>
>>mcount=0
>>n = 1 to len(rinfo)
>>if subs(rinfo,n,1)=":"
>>mcount=n
>>endif
>>endfor
>>
>>
>>tnx
>>k
>
>
>mcount = at(':', rInfo)
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform