Ben
2017-09-06 15:27:07 UTC
Hi there,
I tried to use mouCol2u() found somewhere in this forum.I Do not remember the author. moucol2u does not work at all. Is there any update ? I have a Clipper 5.2e and I use grumpfish Mouse Lib. I would like to send what I did
to the author ?
Best Regards
Ben
STATIC FUNCTION mouCol (self,nmcol) // nMcol is mouse coordinate column
local c_info:=self[ 14 ]
local nMin:=1, nMax:=1, vsLen:=BIN2I((SUBSTR (c_info,13 ))),i
for i:= 1 to self:colCount
nMax += (BIN2I((SUBSTR (c_info ,85 + vsLen + (i- 1 ) * 12 ))) + 1 )
if(((nMcol >= nMin) .AND.(nMcol<nMax ) ) )
exit
end
nMin += (BIN2I((SUBSTR (c_info ,85 + vsLen + (i - 1 ) * (12 ) ))) + 1 )
next
return iif(i>self:colcount,0,i)
I tried to use mouCol2u() found somewhere in this forum.I Do not remember the author. moucol2u does not work at all. Is there any update ? I have a Clipper 5.2e and I use grumpfish Mouse Lib. I would like to send what I did
to the author ?
Best Regards
Ben
STATIC FUNCTION mouCol (self,nmcol) // nMcol is mouse coordinate column
local c_info:=self[ 14 ]
local nMin:=1, nMax:=1, vsLen:=BIN2I((SUBSTR (c_info,13 ))),i
for i:= 1 to self:colCount
nMax += (BIN2I((SUBSTR (c_info ,85 + vsLen + (i- 1 ) * 12 ))) + 1 )
if(((nMcol >= nMin) .AND.(nMcol<nMax ) ) )
exit
end
nMin += (BIN2I((SUBSTR (c_info ,85 + vsLen + (i - 1 ) * (12 ) ))) + 1 )
next
return iif(i>self:colcount,0,i)