Uniface on GitHub
Product (releases and patches)
Reported Issues (old)
Fixes and Updates
Did you know, that there is a function $currhits()
Not only it's highlighted in the editor but it does its job ...Ingo
Ingo has written $currhits() with 2 r chars while Iain reported $curhits with a single r char.
Quick check:Searching into actual CHM file I am finding only $curhits (single r char);writing $currhits (with 2 r chars) in a trigger is highlighted, compiled and it works like $curhits.
Yeah, but as Ingo says, if you type $currhits into the editor, it colours up as blue (meaning recognised as a reserved word). I was just curious which of the other two it behaved like.
$currhits is just a synonym of $curhits. The compiler and runtime treat the two functions exactly the same. I guess it was a choice to just document $curhits - did not really check what was implemented first.
The first implementation I remember (4.0.q6) was $currhits with 2 r chars.
In Uniface Six, the implemented $curr.... violates the standard $cur... naming convention.So it was corrected in Uniface 7. but for compatibility reasons, the parser handles $currhits as well up to today.
README File for UNIFACE Six Version 6.1.dp : CDROM Distribution
(C) Copyright Compuware Corporation, 1997
Uniface Six Functions
$curocc E Return the sequence number of the current occurrence in the hitlist. $currhits E Return the number of occurrences currently in the hitlist.
$curline E Return the line on which the cursor is positioned in the current field. $curword E Return the word on which the cursor is positioned in the current field.
Proc Language Reference Manual, Volume 2 (Feb 1999) 14-43
1. The name $currhits is a synonym for $curhits.
So, is "It's job" the same as $curhits, or $hits?
© 2020 Uniface Privacy & Cookies | Privacy Statement | Legal