Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desbordamiento numerico
Message
From
03/11/2004 21:25:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00956074
Message ID:
00957942
Views:
12
Por favor toma en cuenta que los índices son datos de tamaño fijo. Si usas una expresión como alltrim(), que te da un resultado de tamaño variable, los resultados pueden ser impredecibles. (Creo que usa la longitud del primer registro procesado para deducir el tamaño para los demás.) En algunos casos, se debe aplicar padr() para garantizar un tamaño uniforme.

>Manuel.
>
>se me ocurre que puedes indexsar en forma de carater
>
>index on allr(str(clave,11))
>
>cve = allt(str(thisform.txtcve.value,11))
>
>seek cve
>
>asi deve de funcionar.
>Bernardo
>
>>A traves de un text form le paso a una variable 11 digitos numericos al mandar a buscar en una tabla con el comando SEEK me manda el mensaje desbordamiento numerico. Como podría realizar mi busqueda en la tabla sin que se desborde?
>>
>>mi codigo es :
>>
>>cve=thisform.txtcve.value
>>sele alumnos
>>set order to clave
>>seek cve
>>if not found()
>>----
>>----
>>endif
>>
>>****
>>Saludos
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform