is posible expalin my for what use %s in a code line

cmdLine.Format("\"%s\" \"%s\" %d %s %s %s", playerFile, moviePath, 10,
cameraName, selectDate, movieID);

i need now how works this code line

String.

is posible expalin my for what use %s in a code line

cmdLine.Format("\"%s\" \"%s\" %d %s %s %s", playerFile, moviePath, 10,
cameraName, selectDate, movieID);

i need now how works this code line

It is used as a placeholder to substitute values into the place of:

so the first %s is the first variable whaich as walt says is treated as a string so say the values were as follows

playerFile  = "str1";
moviePath = "str2";
cameraName = "str3";
selectDate = "str4";
movieId  = "str5"

the the output into CmdLine is something like "str1" "str2" 10.00 str3 str4 str5 the ten is being treated as a double via %d

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.