Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
creo said:see Pro Engineer - Relation Operators and Functions for Strings for syntax on extract() and search()
Simplified for readability, base on from (external link), which follows this.
/***************************************************************************************************
NAME = FILE_NAME
OLD = "_"
NEW = " "
if Search(NAME, OLD)!=0
NAME=extract(NAME,1,Search(NAME, OLD)-1)+NEW+extract(NAME,Search(NAME, OLD)+1,String_length(NAME)-Search(NAME, OLD))
if Search(NAME, OLD)!=0
NAME=extract(NAME,1,Search(NAME, OLD)-1)+NEW+extract(NAME,Search(NAME, OLD)+1,String_length(NAME)-Search(NAME, OLD))
if Search(NAME, OLD)!=0
NAME=extract(NAME,1,Search(NAME, OLD)-1)+NEW+extract(NAME,Search(NAME, OLD)+1,String_length(NAME)-Search(NAME, OLD))
endif
endif
endif
creo said:integer_param = 4
string_param = itos(integer_param)
/*string_param will return 4 */
integer_param = -7
string_param = itos(integer_param)
/*string_param will return -7 */
For an integer with zero (0) value, the itos function returns a null ("") value as shown below:
integer_param = 0
string_param = itos(integer_param)
/*string_param will return an empty or null string ("") */
To return a zero string value ("0"), use the following IF statement:
integer_param = 0
string_param = itos(integer_param)
IF string_param == ""
string_param = "0"
ENDIF