I must have alot to learn yet about Vantage... because I'm not sure
how to even attempt this! Could you maybe contact me offline at
mhow@... so I could ask you a few questions?
Thanks!
how to even attempt this! Could you maybe contact me offline at
mhow@... so I could ask you a few questions?
Thanks!
--- In vantage@yahoogroups.com, "Jeff Lewis" <jeff@...> wrote:
>
> You could update the records using the Procedure Editor --
>
> DEF VAR cntr AS INTEGER NO-UNDO.
> DEF VAR strt AS INTEGER FORMAT ">>9" NO-UNDO.
> DEF VAR pDescNew Like Part.PartDescription no-undo.
>
> ON WRITE OF Part OVERRIDE DO: END.
>
> For each Part where Part.Company = "YourCompany"
> EXCLUSIVE-lock:
>
> strt = R-INDEX((Part.PartDescription),",HH,").
> IF (strt>0) THEN Do:
> pDescNew = REPLACE(Part.PartDescription,",HH,"," HH ").
>
> /* DISPLAY Part.PartDescription FORMAT "x(50)" */
> /* pDescNew FORMAT "x(50)" */
> /* with 2 col. */
>
> ASSIGN Part.PartDescription = pDescNew.
> cntr = cntr + 1.
> END.
> END.
>
> DISPLAY cntr.
>
> This code does it live and on the fly. I usually take the more
> conservative approach of exporting out a list, modifying it off-
line,
> then cycling back thru the database only updating records which
have not
> changed.
>
> Jeff Lewis
>
>