Skip to content

printform1 question

Forums Forums SIMPOL Programming printform1 question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #204
    Jean Vallee
    Participant

    No matter what I try printform1.selectkey is giving me fits. boolean ok; ok = .false integer e; e = 0 printform1 pf pf =@ openprintform1(filename) type(db1index)i i =@ setidx_PrmtTnum(appw) ;// this is a string index string mystring mystring = “E-08-000003” ;// a known record in the index above // all ok to here pf.selectkey(mystring, i, found = ok, error=e) At this point I am getting both an error 16 and ok = .false and no record. I do get a record if I say pf.selectfirst or pf.selectlast What am I missing? Jean Vallee

    #2210
    Jean Vallee
    Participant

    On 3/28/2013 3:26 PM, JV wrote:
    > No matter what I try printform1.selectkey is giving me fits.
    >
    > boolean ok; ok = .false
    > integer e; e = 0
    > printform1 pf
    > pf =@ openprintform1(filename)
    > type(db1index)i
    > i =@ setidx_PrmtTnum(appw) ;// this is a string index
    > string mystring
    > mystring = "E-08-000003" ;// a known record in the index above
    > // all ok to here
    > pf.selectkey(mystring, i, found = ok, error=e)
    >
    > At this point I am getting both an error 16 and ok = .false and no record.
    >
    > I do get a record if I say pf.selectfirst or pf.selectlast
    >
    > What am I missing?
    >
    > Jean Vallee
    >
    >
    Fit resolved.. Not opening the file I thought I was.

    But now have a different problem

    Open files with appframework, then do.
    prinform1
    pf =@ openprintform1(filename)

    and get an error 3, locked out.

    Since printform1 is not part of appw, is this trying to open the table a
    second time like a second user?

    Jean

    #2222
    Ian Macpherson
    Participant

    Jean hello or bonjour ??
    It's the backgroundvisible(.false) that removes the rectangles
    All the best Ian Mac

    #1418
    Jean Vallee
    Participant

    Thanks Ian! I'm not sure I would have ever figured that out! and it's
    hello:-)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.