Foro SMath SMath Studio Questions Modifying global variables in user defined function 1 páginas (5 elementos) Modifying global variables in user defined function - I am trying to modify a global variable inside a function passed as an argument. - Mensajes Ir al último mensaje #1 Publicado: 30/6/2021 22:28:24 stephen16 0 me gusta en 2 mensajes. Grupo: User I am expecting the global variable value to change and maintain the change after exiting the function. #2 Publicado: 30/6/2021 23:49:39 Alvaro 1.139 me gusta en 1.805 mensajes. Grupo: User Hi. The only way I know for a function to modify a variable is to pass it by reference to the function.Best regards.Alvaro. #3 Publicado: 1/7/2021 0:03:51 stephen16 0 me gusta en 2 mensajes. Grupo: User Hi Alvaro,Thank you for your reply. How do I do that? Could you share some sample. #4 Publicado: 1/7/2021 0:12:28 Alvaro 1.139 me gusta en 1.805 mensajes. Grupo: User Hi.example_by_ref.sm (4,86 KiB) descargado 1248 vez(es).Best regards.Alvaro. #5 Publicado: 1/7/2021 8:35:00 Jean Giraud 983 me gusta en 6.866 mensajes. Grupo: User Native Smath has the exceptional feature of being algo style.You can do what you want from in-situ command line. A 1 usuarios les gustó este mensajeOscar Campo 1/7/2021 10:50:00 1 páginas (5 elementos) Nuevos mensajes Sin mensajes nuevos