... }; // SEGUN FORO DE FIVEWIN function LRC( cText ) local nCheckSum := 0 local n for n = 1 to Len( cText ) nCheckSum = nXor( nCheckSum, Asc( SubStr( cText, n, 1 ) ) ) next return (nCheckSum) // valores esperados vs obtenidos con metodo fivewin LRC() // valor esperado ... valor obtenido alerta( ...
Gracias Armando, cree esta funcion FUNCTION Redondear(numero) *--------------------------- Local val_num := Val(SubStr(Str(numero,9),-1)) Local Valor := 0 If val_num>=1 .AND. val_num<=5 valor = numero - val_num ElseIf val_num>= 6 .AND. val_num<= 9 valor = numero + (10-val_num) ...
... programming language! User I need harbour code ChatGPT To split the address string in Harbour, a language similar to Clipper, you can use the SubStr() and At() functions to locate and extract the specific parts of the address. Harbour's string handling functions are quite powerful for these ...
... DEL WS //BUSCAR PRINCIPIO Y FINAL pdfin:=at("%PDF-1.4",response) pdfend:=At("%EOF",response) largo:=pdfend-pdfin resp:=substr(response,pdfin,largo+4) cFilename:="texto.pdf" * Grabo el Archivo PDF ferase(cfilename) oText:= TTxtFile():New( cfilename ) if oText:Open() ...
... Error de argumento: acceso al array Args: [ 1] = C abcdefghijklmnopqrsuwyzABCDEFGHIJKLMNOPQRSTUWXYZ!$# [ 2] = N 2 si hago esto no me tira error ? substr( cChars,2,1) graciaS!