FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Sample for FW_stricmp()
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Sample for FW_stricmp()
Posted: Thu Jun 17, 2021 07: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.08 with Harbour

Continue the discussion