Como convierto este código de c# a xharbour. private string ValidarNit(string numeronit) { string nitvalido = null; numeronit = numeronit.ToUpper(); numeronit = numeronit.Trim(); //expresion regular que valida si el el string cumple con el patron del nit string strPatron = @"^[0-9]+-([K]|[0-9])$"; ...
I have just purchased new version of FWH. I'm trying to compile and Link with MSVC++ 6.0 (I'm normally a borland user). The compile step works but the link step has many unresolved errors. I'm using buildxm.bat to compile one of the sample programs. What am I missing? Here are the errors: ┌ ...
... // codice normalizzato string codice = this.Abi + this.Cab + this.ContoCorrente; // calcolo valori caratteri int somma = 0; char[] c = codice.ToUpper().ToCharArray(); for (int k = 0; k < (L_CONTO + L_ABI + L_CAB); k++) { int i = numeri.IndexOf(c[k]); if (i < 0) i = lettere.IndexOf(c[k]); ...
... // codice normalizzato string codice = this.Abi + this.Cab + this.ContoCorrente; // calcolo valori caratteri int somma = 0; char[] c = codice.ToUpper().ToCharArray(); for (int k = 0; k < (L_CONTO + L_ABI + L_CAB); k++) { int i = numeri.IndexOf(c[k]); if (i < 0) i = lettere.IndexOf(c[k]); ...
... 0; i < ulLen; i++ ) szCopy[ i ] = (char) hb_cdp_page->s_upper[szText[i]&255]; else #endif for( i = 0; i < ulLen; i++ ) szCopy[ i ] = toupper( (BYTE) szText[ i ] ); szCopy[ i ] = '\0'; return szCopy; } /* converts szText to upper case. Does not create a new string! */ HB_EXPORT char ...