Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modificaciones en un campo
Message
From
07/06/2003 18:03:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00795408
Message ID:
00797682
Views:
17
>Gracias Mario, si me funciono:
>
>REPLACE rubro WITH SUBSTR(RUBRO,2,LEN(ALLTRIM(RUBRO))) ALL
>
>Saludos

Está bien, pero puedes omitir el tercer parámetro, ya que por default toma el resto del string. Así, se simplifica un poco:
REPLACE rubro WITH SUBSTR(RUBRO,2)) ALL
De la ayuda:

nCharactersReturned

Specifies the number of characters to return from cExpression. If you omit nCharactersReturned, characters are returned until the end of the character expression is reached.


Saludos,

Hilmar.
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
Reply
Map
View

Click here to load this message in the networking platform