Phantom Documentation

[Help Home] [Phantom Home]
InputString

string InputString(string)

Return Type: string
Parameters: string Prompt

Description:
InputString prompts the user to enter a string or character value and returns the input. The Prompt is displayed, after which a string or character value must be entered. An error occurs if a non-string or non-character is entered.

Example Code
1 >>string s = InputString("Enter your name: ");
Enter your name: Dud
2 >>disp(s);
Dud


 


Copyright 2000-2011 Phantom Automated Solutions