Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Highlighted
slimypi
New Contributor

Peek function

Hello,

I am trying to understand the usage of Peek as of the exemple of this peek documentation : https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/InterRecordFu...

Now, the Row_num=0 usage I do understand, but I can't figure it out for the example  with : Peek(EmployeeCode,2).

For me, this command should return Indeed the third value of the table which is 103.

Though the doc says : Peek(EmployeeCode,2) returns the third value in the table: 102.

So i'm confused, in which table (internal maybe ? ) the third value is 102 ?

Thank you for your help 

 

1 Solution

Accepted Solutions
Partner
Partner

Re: Peek function

Hi,

I think it is a documentation mistake because ,2 returns the third line, you are right, this is 103.

There is no internal table at all.

Regards

2 Replies
Partner
Partner

Re: Peek function

Hi,

I think it is a documentation mistake because ,2 returns the third line, you are right, this is 103.

There is no internal table at all.

Regards

slimypi
New Contributor

Re: Peek function

That was what I thought I just tried to check wit you guys.

I just spent 1 hour trying to figure out what have I misunderstood.

Frankly, I've stumbled upon KIND OF  unusual amount of mistakes in the official documentation.

I hope these inaccuracies are corrected, I've also checked other language for the same page (French) and the same mistake is ther.

Anyway thank you for yout response.

If someone had an explanation other than a mistake i will be tracking this subject.

RegardS.