AT() is strictly Clipper compatible as per Harbour guidelines.
Hence the creation of HB_AT.
AT() with 3 Parameter.
Moderator: Rathinagiri
- apais
- Posts: 441
- Joined: Fri Aug 01, 2008 6:03 pm
- DBs Used: DBF, Leto, MariaDB, SQLite
- Location: uruguay
- Contact:
Re: AT() with 3 Parameter.
Angel Pais
Web Apps consultant/architect/developer.
Web Apps consultant/architect/developer.
- AUGE_OHR
- Posts: 2117
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: AT() with 3 Parameter.
OK, understand
but what is the Difference to Hb_Ati()apais wrote:Hence the creation of HB_AT.
can you enlighten me please
have fun
Jimmy
Jimmy
- apais
- Posts: 441
- Joined: Fri Aug 01, 2008 6:03 pm
- DBs Used: DBF, Leto, MariaDB, SQLite
- Location: uruguay
- Contact:
Re: AT() with 3 Parameter.
Ussually the best source of inside information is Harbour's Changelog
Angel Pais
Web Apps consultant/architect/developer.
Web Apps consultant/architect/developer.
Re: AT() with 3 Parameter.
This function has same functionality as hb_At() with the significant difference that it's case Insensitive.AUGE_OHR wrote: ↑Wed Oct 23, 2019 9:36 pm ok
i saw hb_AtI() is a harbour function so i wonder why AT() will only accept 2 Parameter![]()
Question ; what is the Difference between hb_At() vs. hb_Ati()![]()
i have read Descriptionbut i still "see" no Difference.This function has same functionality as hb_At() with the significant difference that it's case Insensitive.
Optionally, with nStart can be defined the position into main string from where the search of cSearch must begin and with nEnd the position where it must stop. If neither of them is defined, nStart is 1st position and nEnd the ending of cString.
can someone please show me a sample where hb_At() fail while hb_Ati() work![]()
? hb_At( "AS", "as simple as possible", 5 ) // --> 0
? hb_Ati( "AS", "as simple as possible", 5 ) // --> 11
- AUGE_OHR
- Posts: 2117
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: AT() with 3 Parameter.
AHA ... now i understand, THXedk wrote: ↑Thu Oct 24, 2019 4:45 am This function has same functionality as hb_At() with the significant difference that it's case Insensitive.
Code: Select all
? hb_At( "AS", "as simple as possible", 5 ) // --> 0 ? hb_Ati( "AS", "as simple as possible", 5 ) // --> 11
have fun
Jimmy
Jimmy
Re: AT() with 3 Parameter.
SALINETAS24 wrote: ↑Wed Oct 23, 2019 9:05 amandyglezl wrote: ↑Wed Oct 23, 2019 3:32 am Tal vez de esta manera...
*------------------------------------
Maybe this way ...
solo una pequeña correcciónCode: Select all
DO WHILE nPosi > 0 nPosi := AT( cSign, cString ) cString := SUBSTR( cString, nPosi ) IF nPosi > 0 nRet ++ ELSE EXIT ENDIF ENDDO
SaludosCode: Select all
DO WHILE nPosi > 0 nPosi := AT( cSign, cString ) cString := SUBSTR( cString, nPosi+1 ) //Sumar 1 a nPos, en caso contrario estará en bucle IF nPosi > 0 nRet ++ ELSE EXIT ENDIF ENDDO
Lo siento, no lo probé, era solo la idea.
*---------------------------------------------------
I'm sorry, I didn't try it, it was just the idea.
Andrés González López
Desde Guadalajara, Jalisco. México.
Desde Guadalajara, Jalisco. México.