Inhalt

Index

Example for STRSUB

string = "Allplan SmartParts 2012" !defines the string which should be evaluated

version = STRSUB ( string , STRLEN ( string ) - 3 , 4 ) !writes the last 4 characters of the variable 'string' to the variable 'version'

program = STRSUB ( string , 1 , STRLEN ( string ) - 5 ) !writes all characters except the last 5 from the variable 'string' to the variable 'program'

PRINT program , "\n" , version ! displays the variables 'program' and 'version' in a message box



Allplan

(C) ALLPLAN GmbH

Privacy policy