Re: excel macro into php
| From: | Tijnema ! | Date: | Thu, 03 May 2007 15:21:34 +0000 |
| Subject: | Re: excel macro into php | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254340@lists.php.net to get a copy of this message | ||
On 5/3/07, Daniel Brown <parasane@gmail.com> wrote:
Nein, aber mein deutsch ist also nicht gut ;) Sprechen sie Spanischen Daniel?\ TijnemaSie nicht auch sprechen Spanischen, Tij?
On 5/3/07, Tijnema ! <tijnema@gmail.com> wrote: On 5/2/07, Anton Krall <akrall-lists@intruder.com.mx > wrote:Guys.. I have a problem and I was wondering if somebody with good php knowledge could help. I have this excel macro that converts number currency (mexican) into a string and I was wondering if somebody could help translating it tophp...Her eis the macro, if you could help, I would really appreciate it. Thanks guys!I think that starting over is better then trying to convert this excel macro. What exactly do you want to convert, from ?? to ?? Since all functions are in a language that isn't english, dutch, german or frisian, I can't understand.<snip>laUnidades = Array("UN", "DOS", "TRES", "CUATRO", "CINCO", "SEIS","SIETE","OCHO", "NUEVE", "DIEZ", "ONCE", "DOCE", "TRECE", "CATORCE", "QUINCE", "DIESISEIS", "DIESISIETE", "DIESIOCHO", "DIESINUEVE", "VEINTE","VEINTIUN","VEINTIDOS", "VEINTITRES", "VEINTICUATRO", "VEINTICINCO", "VEINTISEIS", "VEINTISIETE", "VEINTIOCHO", "VEINTINUEVE") laDecenas = Array("DIEZ", "VEINTE", "TREINTA", "CUARENTA", "CINCUENTA", "SESENTA", "SETENTA", "OCHENTA", "NOVENTA") laCentenas = Array("CIENTO", "DOSCIENTOS", "TRESCIENTOS","CUATROCIENTOS","QUINIENTOS", "SEISCIENTOS", "SETECIENTOS", "OCHOCIENTOS","NOVECIENTOS") Nice array, if you need it, you can use it directly in PHP, just add a $ sign before the variable and ; at the end, and it is a PHP array :) <snip> I've snipped the rest of your code, because it's very though to understand the code if you can't read the language. Like i said, show me what you want to convert from and to, so that i can help you writing something new, or comment your own macro in english so that people can understand it. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107