RE: [U2] eval question

2006-01-25 Thread Jeff Powell
Colin, This worked perfectly. Thanks, > You can use any expression valid in a virtual attribute. So: > > list thisfile eval > "EXTRACT(@RECORD,40,0,0):'|':EXTRACT(@RECORD,53,0,0):'|':EXTRACT(@RECORD > ,<>,0,0)" --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please vi

Re: [U2] eval question

2006-01-25 Thread Symeon Breen
use EVAL "@RECORD<40> | @RECORD<53>" etc basicaly anything you can use in an I type dict item, tho there are restrictions I believe on number of levels. On 1/25/06, Jeff Powell <[EMAIL PROTECTED]> wrote: > I am trying to use eval to format a response from a uniquery list. This > works

RE: [U2] eval question

2006-01-25 Thread colin.alfke
You can use any expression valid in a virtual attribute. So: list thisfile eval "EXTRACT(@RECORD,40,0,0):'|':EXTRACT(@RECORD,53,0,0):'|':EXTRACT(@RECORD ,<>,0,0)" In this case the <> will prompt you for the attribute number to use Hth Colin Alfke Calgary, Alberta >-Original Message

RE: [U2] eval question

2006-01-25 Thread Pingilley, Ron
Jeff, For the "something.else" use @RECORD. You could even use OCONV(@RECORD,"correlative") if the something.else requires formatting before being added to the output string. list thisfile eval "prod.num:'|':pck.qty:'|':@RECORD<###>" fmt "255l" -OR- list thisfile eval "prod.num:'|':pc

[U2] eval question

2006-01-25 Thread Jeff Powell
I am trying to use eval to format a response from a uniquery list. This works if I use dictionary items but for some attribute there either is not a dictionary or it is pointing to an incorrect attribute. How can I use an attribute directly? Hypothetical Dictionary Example: list thisfile eval "p