For Programmers: Free Programming Magazines  


Home > Archive > Clipper > March 2005 > Re: field_A entry based upon field_B entry in tbrowse









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: field_A entry based upon field_B entry in tbrowse
happy

2005-03-05, 8:55 am

What about saving recno() before going into PHCOLGET function and
restoring it after PHCOLGET function ?

Stephen Quinn

2005-03-05, 8:55 am

Ehab

What about it??
If the function uses a different workarea why would you think that the record
pointer would move off the current record.
If the function manipulates the current workarea then I'd be saving the record
pointer in the function as well.
Eg
> FUNCTION PHCOLGET(OBROWSE,workarea)

local nArea := select()
local nRecNo := recno()
select 4
// code
select nArea
( nArea )->( DBGoto( nRecNo ) )
return

--
HTH
Steve


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com