Tips & Tricks
Home Up RTI Routines AREV Subs System Subs Printers Sample Code Tips & Tricks Tech Bulls

 


TIPS AND TRICKS

 

REMOVE

    When using the REMOVE statement, the variable MORE (or whatever you wish to call it) is set:

remove Test from Array at ArrayPos setting More

    If you are then using Test somehow to create a new array, most programs predefine a DELIMITER array and use MORE to index into that array to obtain the delimiter to use to build the new array with exactly the same delimiters in exactly the same order.

Delims = @RM:@FM:@VM:@SVM:@TM:@STM
NewArray := NewData:Delims[More,1]

    However, a much quicker and cleaner way is thus:

NewArray := NewData:CHAR(256-More)

    This give you the same result without the additional clock cycles to do the [] function and without the memory overhead of defining Delims.

Back to Top

 

Revelation , Advanced Revelation , AREV and Open Insight are trademarks of Revelation Technologies, Inc.   All other products mentioned are registered trademarks or trademarks of their respective companies.

Questions or problems regarding this web site should be directed to the WebMaster.
Copyright © 2000 TARDIS Systems . All rights reserved..