Files with multiple functions and recalls between files/Archivos con múltiples fun... - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Files with multiple functions and recalls between files/Archivos con múltiples fun... (/thread-653.html) |
Files with multiple functions and recalls between files/Archivos con múltiples fun... - compsystems - 02-11-2014 05:08 PM Please create a new subforum for posts in other languages in Spanish =( USO DEL OPERADOR PUNTO (.) fileName.functionName códigos de prueba. El siguiente archivo (file1) se debe almacenar estrictamente como my_dir1.hpPrgm y (file2) como my_dir2.hpPrgm para que pueda correr satisfactoriamente. En el archivo my_dir1.hpPrgm la siguiente sentencia my_dir2.funcion1( valor_f2 ); llama a una función de otro archivo que se encuentra en my_dir2.hpPrgm, esto muy útil para crear una especie de DIRECTORIOS ESTATICOS y que otros archivos puedan llamar funciones entre ellos, una especie de LIBRARY en donde cada archivo puede contener el mismo nombre de funciones, hay que tener mucho cuidado con EXPORT por que si dos archivos contienen una función con idéntico nombre se exportara la ultima definida (espero que HP_TEAM) solucione este problema file 1: my_dir1.hpPrgm Code: //my_dir1.hpPrgm file2: my_dir2.hpPrgm Code: //my_dir2.hpPrgm Al ejecutar desde la línea de entrada main_dir1(1); or my_dir1.main_dir(1) [Enter] returns …1 …2 …3 …4 …5 ...6 RE: Files with multiple functions and recalls between files - patrice - 02-11-2014 05:48 PM May be you should begin by specify the language in tittle when you post in English forum. Files with multiple functions and recalls between files/Archivos con múltiples fun... - compsystems - 02-11-2014 06:35 PM Now, with calls to functions CAS type Ahora con llamadas a funciones tipo CAS my_dir2.funcion1( valor_f2 ); function1_CAS( valor_f2 ); CAS FILE Code:
|