Sample for FW_stricmp()

Sample for FW_stricmp()

Postby Marc Venken » Thu Jun 17, 2021 7:39 am

* FW_STRICMP() improved. Can be used to compare strings as well as any
valtype.
Syntax-1:
FW_StrICmp( uVar1, uVar2, [lExact] ) --> -2/-1/0/+1/+2
lExact defaults to SET EXACT setting.
uVar1 and uVar2 can be of any data types. In case both are
strings, "case insensitive" comparision is made. In other cases,
normal comparision is made. ValTypes "D" aND "T" are converted
to same type and compared.

Is it possible to have a small sample for the hashes ? only the compare is needed

1 Loop a dbf source to hash
2 compare the hash = what is different than target and make some note of it (array for xbrowse for example)
3 write the hash


h := FW_RecToHash()
select temp
//temp->(dbappend()) not in this case
// locate correct item and change = No problem
FW_HashToRec( h )
select target
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1434
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], wilsongamboa and 93 guests