leftstr()

Returns the left portion of a string, truncating or padding on the right with blanks if necessary, until the length specified is obtained.

Syntax:

leftstr(string, length);

where

str is the string.

length is an integer, length to truncate or pad.

Example:

The example creates the string "hello".

decl nstr;
nstr = leftstr("hello", 3);

Download Example File:

The following link(s) lead to the Agilent EEsof EDA Knowledge center website. You will need to register at this site with a valid support contract to download an example file.

Get File Size
Is This UNIX?
Replace String

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources