Hi Freaks
Did you know, that there is a function $currhits() 🙂
Not only it's highlighted in the editor but it does its job ...
Ingo
Hi Freaks
Did you know, that there is a function $currhits() 🙂
Not only it's highlighted in the editor but it does its job ...
Ingo
Hi Freaks
Did you know, that there is a function $currhits() 🙂
Not only it's highlighted in the editor but it does its job ...
Ingo
So, is "It's job" the same as $curhits, or $hits?
Iain
Hi Freaks
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.
Gianni
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.
Gianni
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.
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.
Gianni
$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.
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.
Gianni
The first implementation I remember (4.0.q6) was $currhits with 2 r chars.
Gianni
Hi Freaks
Did you know, that there is a function $currhits() 🙂
Not only it's highlighted in the editor but it does its job ...
Ingo
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
Entity:
$curocc E Return the sequence number of the current occurrence in the hitlist.
$currhits E Return the number of occurrences currently in the hitlist.
Field:
$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.
Uniface 7.2.04
Proc Language Reference Manual, Volume 2 (Feb 1999) 14-43
1. The name $currhits is a synonym for $curhits.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.