control a string

control a string

Postby Silvio.Falconi » Wed Sep 19, 2018 7:27 pm

I have two type of string
sample "5TC" "FIS" "PAL"
how I can make to control the first letter is a Number or Alphabetic ?

I tried with IIF( IsAlNum( Left(cClasse,1) ),"N","L")
but not run
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: control a string

Postby cnavarro » Wed Sep 19, 2018 7:49 pm

Also try with

Code: Select all  Expand view  RUN

? Val( Left( "5TC", 1 ) ),  Val( Left( "FIS", 1 ) )
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Re: control a string

Postby Silvio.Falconi » Wed Sep 19, 2018 9:08 pm

Thanks enrico now run
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: FiveWiDi, Google [Bot], JoséQuintas and 43 guests