Post Reply 
Inputting a string.
02-16-2022, 10:00 PM
Post: #3
RE: Inputting a string.
Yes it is possible, also described if you put INPUT on the command line and press help. But I have to admit, that it is not so easy to be understood.
Code:
Syntax:
INPUT(var,[“title”], [“label”], [“help”], [reset_value], [initial_value])
INPUT({vars},[“titles”], [{“labels”}], [{“helps”}], [{reset_values}], [{initial_values}])
var -> {var_name, real, [{pos}]}
var -> {var_name, [allowed_types_matrix], [{pos}]}
var -> {var_name, {choose_items}, [{pos}]}

For your required input you need the second more complex form. Don't worry it's not overly complicated.
  • First of all you have to create a variable that will receive your INPUT as the standard variables "A" through "Z" don't accept strings.
  • Type 123 or anything else then touch [Sto>] and enter e.G. MyVar, the Prime will ask you "Do you want to create a variable called MyVar" once you press OK, you have what you need to work with.
  • INPUT({{MyVar,[2]}})
The outer braces comprise the list of variables (here is only one). The inner braces identify the Variable with its name, here it is MyVar, the [2] identifies the the allowed types, here we allow only one: 2 is for strings. That's it.

You may of course add some bells and whistles, but start it simple Smile

HTH Günter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Inputting a string. - matalog - 02-16-2022, 09:11 PM
RE: Inputting a string. - toml_12953 - 02-16-2022, 09:44 PM
RE: Inputting a string. - Guenter Schink - 02-16-2022 10:00 PM
RE: Inputting a string. - matalog - 02-16-2022, 11:35 PM
RE: Inputting a string. - Guenter Schink - 02-16-2022, 11:54 PM
RE: Inputting a string. - toml_12953 - 02-17-2022, 02:36 AM
RE: Inputting a string. - Arno K - 02-17-2022, 02:45 PM



User(s) browsing this thread: 1 Guest(s)