Page 1 of 1

Sample for FW_stricmp()

PostPosted: Thu Jun 17, 2021 7:39 am
by Marc Venken
* 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