dbTalk Databases Forums  

lvp definition please

comp.databases.pick comp.databases.pick


Discuss lvp definition please in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dtsig
 
Posts: n/a

Default lvp definition please - 01-02-2007 , 11:35 AM






I am dealing with some old dict items and have never seen LVP before.
I was told by a co-worker that it was 'last value processed' but that
makes no sense as the data being displayed does not exist in the row.

I have searched the pdf *documentation* and tried to search rainingdata
forum (no 3 characters or less and no idea how long until i get the
*right* to post a new topic <sigh>)

So does anyone really know what this is .. how it works etc Something
more that 'last value processed' would be appreciated

Thanks


Reply With Quote
  #2  
Old   
Dale
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 12:16 PM







dtsig wrote:
Quote:
I am dealing with some old dict items and have never seen LVP before.
I was told by a co-worker that it was 'last value processed' but that
makes no sense as the data being displayed does not exist in the row.

I have searched the pdf *documentation* and tried to search rainingdata
forum (no 3 characters or less and no idea how long until i get the
*right* to post a new topic <sigh>)

So does anyone really know what this is .. how it works etc Something
more that 'last value processed' would be appreciated

Thanks
go to: www.d3ref.com

There you can find the most of the Pick documentation that is outline
in the Pick manuals.

It's got a good search, so sear for LPV should take you to the correct
page.

Regards,

Dale



Reply With Quote
  #3  
Old   
Allen Egerton
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 12:31 PM



dtsig wrote:
Quote:
I am dealing with some old dict items and have never seen LVP before.
I was told by a co-worker that it was 'last value processed' but that
makes no sense as the data being displayed does not exist in the row.

I have searched the pdf *documentation* and tried to search rainingdata
forum (no 3 characters or less and no idea how long until i get the
*right* to post a new topic <sigh>)

So does anyone really know what this is .. how it works etc Something
more that 'last value processed' would be appreciated

Thanks

If I understand you correctly, "LVP" is the name of a dictionary item,
which in turn points (presumably) to a real or virtual field in a data file.

So, what does "LVP" itself consist of? That is, if "LVP" is its name or
its attribute zero, what are the rest of its attributes?
--
Allen Egerton aegerton at pobox dot com


Reply With Quote
  #4  
Old   
Ed Sheehan
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 12:47 PM



Is it possible you mean "LPV" ? If so, it means Load Previous Value and is
used in F-correlatives.

But answer Allen's question and post where you see this actually being used.

Ed

"dtsig" <dtsig (AT) hotmail (DOT) com> wrote

Quote:
I am dealing with some old dict items and have never seen LVP before.
I was told by a co-worker that it was 'last value processed' but that
makes no sense as the data being displayed does not exist in the row.

I have searched the pdf *documentation* and tried to search rainingdata
forum (no 3 characters or less and no idea how long until i get the
*right* to post a new topic <sigh>)

So does anyone really know what this is .. how it works etc Something
more that 'last value processed' would be appreciated

Thanks




Reply With Quote
  #5  
Old   
Tracy Raines
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 03:35 PM



Quote:
From the D3 reference manual pdf
lpv Last processing code value (result of the previous processing
code).



Reply With Quote
  #6  
Old   
Tracy Raines
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 03:36 PM




Tracy Raines wrote:
Quote:
From the D3 reference manual pdf

lpv Last processing code value (result of the previous processing
code).
Oops. I meant to add that it is in the F correlative section of the
manual.



Reply With Quote
  #7  
Old   
dtsig
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 04:25 PM




Allen Egerton wrote:
Quote:
dtsig wrote:
I am dealing with some old dict items and have never seen LVP before.
I was told by a co-worker that it was 'last value processed' but that
makes no sense as the data being displayed does not exist in the row.

I have searched the pdf *documentation* and tried to search rainingdata
forum (no 3 characters or less and no idea how long until i get the
*right* to post a new topic <sigh>)

So does anyone really know what this is .. how it works etc Something
more that 'last value processed' would be appreciated

Thanks


If I understand you correctly, "LVP" is the name of a dictionary item,
which in turn points (presumably) to a real or virtual field in a data file.

So, what does "LVP" itself consist of? That is, if "LVP" is its name or
its attribute zero, what are the rest of its attributes?
--
Allen Egerton aegerton at pobox dot com
LPV is not a dict item .. it is found in conv and cor (attributes 7 and
8). I have seen them in A and F items.

If it is simply 'Last Value' or 'Load Last Value' then wouldn't what is
on the stack (in f types) be that value?

thanks .. love pick documentation



Reply With Quote
  #8  
Old   
dtsig
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 04:28 PM




Dale wrote:
Quote:
dtsig wrote:
I am dealing with some old dict items and have never seen LVP before.
I was told by a co-worker that it was 'last value processed' but that
makes no sense as the data being displayed does not exist in the row.

I have searched the pdf *documentation* and tried to search rainingdata
forum (no 3 characters or less and no idea how long until i get the
*right* to post a new topic <sigh>)

So does anyone really know what this is .. how it works etc Something
more that 'last value processed' would be appreciated

Thanks

go to: www.d3ref.com

There you can find the most of the Pick documentation that is outline
in the Pick manuals.

It's got a good search, so sear for LPV should take you to the correct
page.

Regards,

Thanks .. hadnt see that site before. I did enter LPV and search ..
just came up with generic a/f information.

thanks though



Reply With Quote
  #9  
Old   
dtsig
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 04:34 PM




Tracy Raines wrote:
Quote:
From the D3 reference manual pdf

lpv Last processing code value (result of the previous processing
code).
So this is the 'result' of the last process?

<0> itemid
<1> a
<2> 0
<7> A"100"*((LPV/"12")(MR0))+R(LPV"12") MR2
<8> AIF (7(TINVENTORY;X;56;56)+"0")="0" THEN "12" ELSE
7(TINVENTORY;X;56;56)
<9> R
<10> 8

it would seem that 8 would be calculated giving result of either "12"
or value of attribute 56 in inventory table id= what is in attribute 7
of base table.

Is this the result that would pop up for LPV?

thanks



Reply With Quote
  #10  
Old   
Ed Sheehan
 
Posts: n/a

Default Re: lvp definition please - 01-02-2007 , 05:26 PM



Luke Webber contributed this in 2002:

"Tracey" <wpiis (AT) gte (DOT) net> wrote

Quote:
I have a question unrelated with this project

Can someone give me an example how and/or where you would use LPV (load
previous value)?
I see it in the manual but I've never seen it used anywhere.
LPV is used to avoid recomputing a value when you need to refer to it more
than once. As an example, suppose you wanted to fetch an attribute from
another file, and then if that attribute was null, display the string "*
UNDEFINED *", but to display the attribute itself otherwise. It might go
like this..

001 A
002 3
003 Client Name
004
005
006
007
008 TCLIENT;X;;1]A;IF LPV="" THEN "* UNDEFINED *" ELSE LPV
009 T
010 30

That way you don't have to do your translate twice. Of course you could
fiddle this with the F-code stack, but it's nicer this way.

Quote:
Thank you ALL for your time.
Don't mention it.

Luke

-----------------------------------------------------------------

I found this in the mvBase docs on RD'd site:

The LPV (Load Previous Value) operator takes the result of a previous
correlative operation and uses it for further processing. The code with the
LPV operator is specified in line 7, and the correlative that generates the
previous value is specified in line 8. The previous value becomes an operand
in an A code and an element in an F code; it must be the first element
specified in an F code, otherwise strange results may be obtained.
In example below, the F code in line 8 first multiplies the contents of
Attribute 2 by the contents of Attribute 3. Then the F code in line 7
divides the result by 100.

007 F ; LPV ; "100" ; /
008 F ; 2 ; 3 ; *

Ed


"dtsig" <dtsig (AT) hotmail (DOT) com> wrote

Quote:
Tracy Raines wrote:
From the D3 reference manual pdf

lpv Last processing code value (result of the previous processing
code).

So this is the 'result' of the last process?

0> itemid
1> a
2> 0
7> A"100"*((LPV/"12")(MR0))+R(LPV"12") MR2
8> AIF (7(TINVENTORY;X;56;56)+"0")="0" THEN "12" ELSE
7(TINVENTORY;X;56;56)
9> R
10> 8

it would seem that 8 would be calculated giving result of either "12"
or value of attribute 56 in inventory table id= what is in attribute 7
of base table.

Is this the result that would pop up for LPV?

thanks




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.