Prosenjit
Prosenjit

Reputation: 1

LOOKUP function is not working in progress 4GL

I tried the below code, which should return 123 in lv_id but returning '123/USER@PROSENJIT'.

IF LOOKUP('PF', 'PF/123/USER@PROSENJIT', '/') > 0 THEN
DO:    
     ASSIGN        
         lv_id = ENTRY(2,'PF/123/USER@PROSENJIT','/':U)

END.

Can anyone please let me what is the wrong here.

Upvotes: 0

Views: 720

Answers (1)

Tim Kuehn
Tim Kuehn

Reputation: 3251

I tried this and it worked:

if LOOKUP('PF', 'PF/123/USER@PROSENJIT', '/') > 0 then
    message ENTRY(2,'PF/123/USER@PROSENJIT','/':U).

I'm thinking there's something else going on that's causing your difficulty.

Upvotes: 2

Related Questions