Entradas

Mostrando las entradas con la etiqueta programación modular y estructurada

How to Get Exchange Rates in Excel Automatically Using a Free API (VBA Step-by-Step)

Imagen
How to Get Exchange Rates in Excel Automatically Using a Free API (VBA Step-by-Step) Automate exchange rates in Excel in minutes. In this guide, you’ll learn how to retrieve currency data from multiple countries (including African currencies) using a free API and VBA. This example is perfect if you work with financial reports, currency analysis, or need updated data without manual input. 🚀 What will you learn? How to get real-time exchange rates in Excel How to use a free API (no API key required) How to automate Excel with VBA How to retrieve multiple currencies (USD, MXN, EUR, ZAR, NGN, etc.) 🌍 Free Exchange Rate API For this example, we will use the following free API: 👉 https://open.er-api.com/v6/latest/USD Advantages: No API key required 150+ currencies available Includes African currencies Daily updated data (not historical) 💻 VBA Macro to Get Exchange Rates in Excel Copy and paste this code into a VBA module: Sub GetExchangeRates(...

Como crear Funciones en Progress 4gl

Imagen
Progress es un lenguaje que tiende a ser para programación estructurada pero también puede ser del tipo modular , ya que nos permite crear funciones y procedimientos para poder crear modularidad en nuestros programas para poder reutilizar las funciones y sea más fácil de entender, una forma de comparar la programación modular es como cuando tenemos un teatro en casa son un buffer, un subuffer, barras de sonido y un controlador, esto visto en programación el controlador es el programa principal y las barras de sonido, buffer, etc son funciones, procedimientos o subprogramas. Las funciones en Progress 4gl tienen las siguientes características  Se deben escribir al principio del programa principal, o antes de ser llamada Se debe utilizar la palabra reservada FUNCTION para iniciar el inicio End Function para definir el fin de la función Se debe definir el tipo de dato que regresara la función utilizando la función RETURNS Puede tener parámetros de entrada o no, los cuales ...

🚀 Mantener este blog funcionando requiere tiempo y café. ¡Puedes contribuir con uno aquí!