Forums › Forums › SIMPOL Programming › printform1 question
- This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by Ian Macpherson.
- AuthorPosts
- March 28, 2013 at 7:26 pm #204Jean ValleeParticipant
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
March 29, 2013 at 12:50 pm #2210Jean ValleeParticipantOn 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
April 16, 2013 at 4:47 pm #2222Ian MacphersonParticipantJean hello or bonjour ??
It's the backgroundvisible(.false) that removes the rectangles
All the best Ian MacApril 16, 2013 at 7:10 pm #1418Jean ValleeParticipantThanks Ian! I'm not sure I would have ever figured that out! and it's
hello:-) - AuthorPosts
- You must be logged in to reply to this topic.