Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alltrim bug?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01252760
Message ID:
01252765
Views:
15
>I think I've used this before. Thought it worked as expected, but why isn't this working like I expect it to:
>
>
>m.Notes = "  " + chr(9) + "Notes"
>m.Notes = alltrim(m.Notes, 0, chr(9))  && Leading spaces and tab are still present
>m.Notes = alltrim(m.Notes, 1, chr(9))  && Leading spaces and tab are still present
>
>
>Maybe something obvious I'm not seeing? Maybe I'm not awake yet? Maybe the brain is turning to mush?

Think you have to add the space to the parameters as well
?alltrim(m.Notes, 0, chr(9), ' ')
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform