fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

CHANGE STRING DELIMITER

Syntax:

CHANGE STRING DELIMITER [TO] SINGLE QUOTE
CHANGE STRING DELIMITER [TO] DOUBLE QUOTE
CHANGE STRING DELIMITER [TO] UP ARROW
DO NOT CHANGE STRING DELIMITER
STRING DELIMITERS AS WRITTEN

Function:

This command is used when migrating legacy codes. It changes the string delimiter systematically throughout the program.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code No

Default

String delimiters are not changed by default. (Note that defaults may be modified in the configuration file).

Examples

In an interactive session:

FPT> type 122:124 122 ! Report the problem 123 >> WRITE (6,"("" Depth out of range:"",F12.4)")DP 124 DP=DP0 FPT> change str delim to single quote FPT> t 122:124 122 ! Report the problem 123 >> WRITE (6,'('' Depth out of range:'',F12.4)')DP 124 DP=DP0

Copyright ©1995 to 2018 Software Validation Ltd. All rights reserved.