Preprocessor question
Posted: Tue Mar 22, 2011 6:28 pm
Hi everyone,
I need to change numerous code which have a pattern like this:
Into
I've put in the search and replacement rule in my .CH like this:
But the resulting .ppo come out like this :
Notice the space after oDataset on the second and third iteration.
Can anyone shed a light on why is there a space between oDataset and CASH?
Regards,
Andy
I need to change numerous code which have a pattern like this:
Code: Select all
TOTAL=CASH->(TODAY+YESTERDAY+TOMORROW)
Into
Code: Select all
TOTAL=oDataSetCASH:FieldGet('TODAY') + oDataSetCASH:FieldGet('YESTERDAY') + oDataSetCASH:FieldGet('TOMORROW')
Code: Select all
#xtranslate =<table>->(<field>[+<fieldsN>]) => =oDataSet<table>:FieldGet(#<field>)[ + oDataSet<table>:FieldGet(#<fieldsN>) ]
Code: Select all
TOTAL=oDataSetCASH:FieldGet('TODAY') + oDataSet CASH:FieldGet('YESTERDAY') + oDataSet CASH:FieldGet('TOMORROW')
Can anyone shed a light on why is there a space between oDataset and CASH?
Regards,
Andy