lsmarco Posted September 12, 2011 Report Share Posted September 12, 2011 Olá bom dia a todos! Alguém lembra como localizar uma string ou parte dela dentro de uma frase? fivewin 6.12 (FREE) - BCC55- Xharbour - Xdev - PellesC - Med. Quote Link to comment Share on other sites More sharing options...
lsmarco Posted September 12, 2011 Author Report Share Posted September 12, 2011 Olá bom dia a todos! Alguém lembra como localizar uma string ou parte dela dentro de uma frase? fivewin 6.12 (FREE) - BCC55- Xharbour - Xdev - PellesC - Med. Quote Link to comment Share on other sites More sharing options...
Anderson.OL Posted September 12, 2011 Report Share Posted September 12, 2011 nPos := At('SubStr','String') Quote Link to comment Share on other sites More sharing options...
Jmsilva Posted September 12, 2011 Report Share Posted September 12, 2011 Se precisar de uma pesquisa incrementada pode usar assim: cNOME := "*MICHELE*SANT*" ou cNOME := "MICHELE*SANT*" ou cNOME := "*JOS? ANTONIO*" If WildMatch(cNOME,cSTRING) //... EndIf xHarbour+Fivewin Caraguá/SP Quote Link to comment Share on other sites More sharing options...
betovsp Posted September 13, 2011 Report Share Posted September 13, 2011 A função ordwildseek do xharbour pode te ajudar: vSn:="Fivewin" ordWildSeek("*"+vSn+"*",.T.) Beto FWH 9.08+xHarbour 1.2.1+Mymake+@Say Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.