Issue of variable texts

Top  Previous  Next

The following announcements are taken from any file from the list moskito\rahmen\messages with the ending.DAT. All announcements are determined by a sign chain and a number. The sign chain should have the name of the procedure which uses this announcement. The announcements can also contain parametre like in printf.

To be able to give texts without final word wrap in variable announcements also the last word wrap is removed. An announcement will contain normally a space at the end.

Source text (C file)

long int EXPORTENTRY File announcement (int argc, char *argv []) {

//This announcement is not very important, only one tip

SYSmessageEx ("file announcement", 23, MSG_TYPE_HINT,

"Title of the dialogue box", "parametre");

return 0;

}

Now it ''is searched for the entry 'file announcement'. If there is this entry, then ''the entry '23' is searched in the group 'File announcement'''. All texts after '23' are found, until to three minus signs exclusively, belong to this announcement. The announcement is as given, as it is formatted in the file.

Announcement file msg.dat

--- File announcement 23

This is an announcement.

Here the parametre is used: %s

The last word wrap becomes entfernt:.

 

---

The special characters %s are as treated among other things as in the C function printf. It must be given according to the format information also parametre for these entries. The parametres become in her order like they in the text seem given parametre in the routine SYSmessageEx.