4 Replies Latest reply: Aug 21, 2014 7:11 AM by Martyn Lloyd RSS

    Trouble with Peek

    Martyn Lloyd

      Can anyone spot the error here? I've been staring at it for ages....

       

      I get NULL for _StartPref

       

      //DATA

      upType,upDate,upUser,upDocument,upParm

      Start,21/08/2014 10:48:37,me,mydoc,Home

      Start,21/08/2014 11:13:05,me,mydoc,Tuto

      Skin,21/08/2014 11:13:05,me,mydoc,Blue

       

      //SCRIPT

      UPPref:
      LOAD upType,
           upDate,
           upUser,
           upDocument,
           upParm
      FROM
      UserPref.qvs
      (txt, codepage is 1252, embedded labels, delimiter is ',', msq)
      Where upUser=OSUser() AND upType='Start'
      ;

      Let _StartPref = Peek('upParm', -1, 'UPPref');