|
String Functions |
Top Previous Next |
|
FlexPDE provides minimal support for dynamically constructing text strings.
$integer (i.e. <dollar> integer) This function returns a text string representing the integer value integer. This function may be used in conjunction with the concatenation operator "+" to build boundary or region names. For example
REPEAT i=1 to 4 do START "LOOP"+$i (x,y) <path_info>... ENDREPEAT
This is equivalent to
START "LOOP1" (x,y) <path_info> ... START "LOOP2" (x,y) <path_info> ... START "LOOP3" (x,y) <path_info> ... START "LOOP4" (x,y) <path_info> ...
Example: See "Samples | Misc | ArrayRepeat.pde" |