Incorrect Syntax for aToken on aDate;  choices are :dmmm, :dMMM, :dmmmm, :dMMMM

Navigation:  Messages > Run-Time Messages > Token Syntax >

Incorrect Syntax for aToken on aDate;  choices are :dmmm, :dMMM, :dmmmm, :dMMMM

Previous pageReturn to chapter overviewNext page

This message arises if you use a regional date formatting token which is not one of the allowed ones.

 

For example, this message may arise from the following token :

 

 [1:dMmmm]

 

which is trying to build regional formatting of a date in analogy to the [Mmmm] token (ie. first letter only in uppercase). However, Q++ does not know the specific rules for which words should or should not be in uppercase, something which depends on the language used and even user preferences, since the regional date formatting tokens recursively contain other tokens resulting in multiple words.

 

Therefore the only allowed combinations are :

 

Don't change case at all : [:dmmm] and [:dmmmm].

 

Change all to uppercase : [:dMMM] and [:dMMMM].

 

Note that regardless of the case desired, the 'd' is always in lowercase.


Topic 104104 updated on 26-Nov-2001.
Topic URL: http://www.qppstudio.net/webhelp/index.html?incorrectsyntaxforatokenonadat.htm