Ben, Under 6.5+ this works, but can't be in an expression as used here. The parens mess it up. But fine for update, as an example. Got this idea from you a while back and it's been helpful.
fwiw, Ben Petersen On 29 Jan 2002, at 11:24, Ben Johansen wrote: > Thats unfortunate, > > I remember long time ago working with Wayne on this double dot or indirect > addressing. so a feature has not been considered a bug ;-0 > One of the big pluses of R:Base used to be this dynamic programming feature. > > Ben Johansen - http://www.pcforge.com > Authorized WiTango Reseller > http://www.pcforge.com/WiTangoGoodies.htm > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Lawrence Lustig > Sent: Tuesday, January 29, 2002 11:07 AM > To: [EMAIL PROTECTED] > Subject: RE: Using macro substitution after left paren in expression > > > --- Ben Johansen <[EMAIL PROTECTED]> wrote: > > I don't know if this still works, used to... > > CHOOSE vVarName FROM #GLOBAL > > set v vVarName = ('.' + .vVarName) > > SET VAR vResult REAL = (.vVarName / 2) > > Clever one Ben. Unfortunately: > > A) The expression evaluator has been tightened up to > cause this to fail. > > B) My real usage involves a column name in an UPDATE > expression, and so the extra '.' would not have the > desired effect. > -- > Larry > > > __________________________________________________ > Do You Yahoo!? > Great stuff seeking new owners in Yahoo! Auctions! > http://auctions.yahoo.com > ================================================ > TO SEE MESSAGE POSTING GUIDELINES: > Send a plain text email to [EMAIL PROTECTED] > In the message body, put just two words: INTRO rbase-l > ================================================ > TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] > In the message body, put just two words: UNSUBSCRIBE rbase-l > ================================================ > TO SEARCH ARCHIVES: > http://www.mail-archive.com/rbase-l%40sonetmail.com/ > > > > ================================================ > TO SEE MESSAGE POSTING GUIDELINES: > Send a plain text email to [EMAIL PROTECTED] > In the message body, put just two words: INTRO rbase-l > ================================================ > TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] > In the message body, put just two words: UNSUBSCRIBE rbase-l > ================================================ > TO SEARCH ARCHIVES: > http://www.mail-archive.com/rbase-l%40sonetmail.com/ > ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: INTRO rbase-l ================================================ TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: UNSUBSCRIBE rbase-l ================================================ TO SEARCH ARCHIVES: http://www.mail-archive.com/rbase-l%40sonetmail.com/
