NetTalk Central

Author Topic: LoadRecord error check?  (Read 3418 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 380
    • View Profile
    • Email
LoadRecord error check?
« on: August 14, 2012, 05:21:01 AM »

Hi,

I have an "other" button on a browse and in the embed I have some code,
but the record buffer is empty.

This code precedes the embed.
How do I check if there was an error with this code, I presume this reads the record into the buffer.

  p_web._LoadRecord(ccnr,ccn:ccnr_isn_key)
  p_web.FileToSessionQueue(ccnr)


thanks

Johan





Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: LoadRecord error check?
« Reply #1 on: August 14, 2012, 06:02:37 AM »
you could just do a GET(file,key) at that point in the code, then test the error value. If that fails then you probably have a clue as to why the _LoadRecord is failing....

JohanR

  • Sr. Member
  • ****
  • Posts: 380
    • View Profile
    • Email
Re: LoadRecord error check?
« Reply #2 on: August 14, 2012, 07:31:48 AM »


Hi Bruce

How is the key primed?

If I just do a GET, it fails with "record not found"
get(ccnr,ccn:ccnr_isn_key)

If I prime the key value manually then it works, so the file is open and ready for business.
eg.
ccn:ccnr_isn = 1
get(ccnr,ccn:ccnr_isn_key)


Johan