Perhaps
$STR_BriefingName
should work, but it doesn't. At least not for me, neither for mission name nor markers.
I still have a long way to go but I have found a website which has helped me understand why I find csv so fiendishly difficult to comprehend.
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htmI've only read it twice so I don't yet fully understand what's what, but I at least I have worked out what at the is at the bottom of my confusion. (I hope.) Everybody says that in .csv format values are separated by commas. This is false. Commas
do not separate values. They are merely
used[/b] in separating values. They are a flag, if you like: a warning that you might be at a new value.
Now that I've realised that, I can figure out what
does separate values.
Edit: actually no, first I have to figure out the definition of what constitues a valid value.
Edit: actually no, what I really have to do is figure out what the commands are in csv
Notes to self (somebody tell me if any of these are wrong)
- The value separator is a comma preceded in the whole document by an even number (including zero) of double quotation mark characters. It returns nothing.
- "x where x is any character other than " returns nothing. Means
1) this is the start/end of a value or
2) a command character within the current value will follow either immediately or later and it is simply to be returned without carrying out the command
- "" returns " providing it is preceded within the value by " otherwise it is invalid.
- A space character returns
1) space if it is within a value or
2) nothing if it is outside a value
- The start and end of a value is defined with one of the following
1) "
2) any alphanumeric character
3) most punctuation but not a comma
4) """
- "" at the start of a value is not valid unless followed immediately by "
- There are five types of character in a .csv file. All characters belong to more than one type.
A character may
1) return itself
- autonomously (e.g. ordinary alphanumeric)
- in association with command characters (e.g. one " from a set of "; non-separator comma, space)
- because it is a command which returns itself as well as doing its command job (e.g. first or last characters in a value)
2) return nothing
- because it is a command (e.g. separator comma, some ") which returns nothing
- because it is a space outside a value
- There are subtleties involving @ but I have not yet encountered these
- Ditto %
(The source of the difficulty is becoming ever clearer. Nobody ever defines what characters mean: they only tell you how to do certain things. This was particularly true at my last run in with .csv. Isn't it funny how certain things - such as this file format - totally corrupt the normal way of doing things? Actually to call it a file format is itself almost misleading: it is a coding language. .csv is not a simple format: it is a complex one. So complex, that people shy away from attempting to describe it. Instead they describe things you can do in it. Which is like trying to explain swimming to a Martian without telling him what water is.)
This is good. Making real progress here.