use the inkey(string*) to input,edit,backspace
your string that you are inputting. It is shown
on the screen while you are inputting or editing. But in this case only up to 50 chars or characters.
Since STRING* temp1; is a undefined string of up to 50 characters.
Good inputting
one more thing:
in the code that I posted...
the string(temp1) method attaches the STRING* temp1 to the Text object sg1.
this is solely diffrent if you omit this string() method.
and then use something like:
str_cpy(temp1, "STARGATE SG1");
str_cpy( (sg1.pstring)[0], temp1);
you are just copying the string contained in temp1 to the pstring
contents of the TEXT object sg1.
While if you attach temp1 thru the string(temp1) method
it will be attached to the TEXT object rather than the string being copied.
And in this case with temp1 being attached and inputted with inkey will show up and displayed on the screen while its being edited/inputted. Hence its attached to the Text object of sg1.
Get it?
Do you follow?