La nueva versión 2024 aporta a sus equipos 929 novedades inmediatamente útiles

This procedure increments file names by adding a digit to the end of the name. Here is how it works: - The “sPath” variable gets the file path using the fExtractPath function with the fDrive and fDirectory parameters. This allows you to get the drive and directory. - The “sExt” variable gets the file extension using the fExtractPath function with the fExtension parameter. - The “sFile” variable gets the file name using the fExtractPath function with the fFile parameter. - The “n” variable is an integer variable used to store the number to be incremented. - The “nPos” variable is an integer variable which is initialized with the length of the “sFile” variable. Next, the “WHILE” loop runs as long as “nPos” is greater than 0 and the character corresponding to “nPos” in the “sFile” variable is numeric. At each iteration, the “nPos” variable is decremented. Then, depending on the value of “nPos”, several cases are possible: - If “nPos” equals 0, the file name contains only numbers. In this case, the name is converted into a numerical value, incremented by 1, and assigned to the “sFile” variable. - If “nPos” is equal to the size of the “sFile” variable, this means that the file name contains no digits at the end. In this case, “1” is added to the end of the name, using the “+=” concatenation operator. - Finally, if none of the above is true, it means that the file name contains numbers at the end, but not only. In this case, the numeric value corresponding to the digits at the end of the name is retrieved using the Val function, it is incremented by 1, and is assigned to the “sFile” variable. Finally, the procedure returns the path, name and extension of the newly incremented file. GENERE UNA DESCRIPCIÓN DE CÓDIGO WLANGUAGE AUTOMÁTICAMENTE EXPLICACIÓNDELCÓDIGOENUNCLIC 134 N o v e d a d W D W B WM IA EN EL EDITOR DE CÓDIGO En la versión 2024, el editor de código puede generar una descripción de procedimientos y secciones de código. Basta con hacer clic en un ícono para generar estas descripciones. Puede utilizar ChatGPT dentro del editor para este propósito. Ventaja de esta novedad en la versión 2024: Mejor flujo de trabajo 136 N o v e d a d W D W B WM GENERE UNA EXPLICACIÓN AUTOMÁTICA DE CÓDIGO WLANGUAGE Todo desarrollador ha tenido que trabajar con código escrito por otra per- sona o mantener código muy antiguo sin entender lo que hace el código. Ahora, el editor de código puede generar una expli- cación clara y concisa en lenguaje natural. Solo tiene que seleccionar el código del que desea ob- tener una explicación. Ventaja de esta novedad en la versión 2024: Una ayuda realmente asombrosa 137 N o v e d a d W D W B WM GENERACIÓN AUTOMÁTICA DE LA DOCUMENTACIÓN DE UN PROCEDIMIENTO El editor de código puede generar un comentario de encabezado a partir del código de un procedimiento existente: • descripción de cada parámetro • valor de retorno del procedimiento • descripción de los pro- cesos del procedimiento. Estos comentarios se generan en formato estándar o Doxygen. El editor de código también utiliza estos comentarios para propor- cionar una asistencia a medida que escribe el código de llamada. Ventaja de esta novedad en la versión 2024: Comentarios generados automáticamente 135 N o v e d a d W D W B WM GENERACIÓN AUTOMÁTICA DE COMENTARIOS DE REINTEGRACIÓN EN EL SCM Escribir una descripción de los cambios realizados al reintegrar los recursos en el SCM es una buena práctica. El editor de código de la versión 2024 puede generar esta descripción para el desarrollador. Ventaja de esta novedad en la versión 2024: Documentación automática Tenga en cuenta que el desarrollador debe tener una cuenta OpenAI para utilizar estos servicios. Pueden aplicarse costes adicionales en función del uso. // ! // ! @brief This procedure determines a readable color according to // ! a given background color. // ! // ! The procedure calculates the luminance of the background color passed as parameter. // ! According to this luminance, the text color must have a low or high lightness. The // ! color returned retains the hue and saturation of the background color. // ! // ! @param BackgroundColor The background color from which to determine the readable color. // ! @return Readable color determined according to the background color. // ! PROCEDURE ReadableColor (LOCAL InitialColor is Color ) : Color // Calculate the lightness of the color passed as parameter rBrightness = 1 - ( 0.299 * InitialColor ..Red + 0 .587 * InitialColor ..Green + 0 .114 * InitialColor ..Blue)/ 255 31 N o v e d a d e s e n W I ND E V , WE B D E V y W I ND E V Mo b i l e 2 0 2 4

RkJQdWJsaXNoZXIy NDQ0OA==