Thank you Richard. I knew there must be something there, but the size of the toolbox gets the best of us sometimes.

David

At 11:25 PM +0100 1/23/02, Richard Guenther wrote:
On Wed, 23 Jan 2002, David Thompson wrote:

 Okay,

 I've never had to do this in DX before. How can I truncate a string?
 I have the String value "abc.txt" and I just want the resultant
 string "abc". If strncpy was implemented, it would be easy. Any
 advice?

Use the Parse module. For your example using the format string
"%[^.].txt" would suffice. Unfortunately the parse module doesnt
seem to handle the more obvious "%s.txt".

Richard.

--
Richard Guenther <[EMAIL PROTECTED]>
PGP: 2E829319 - 2F 83 FC 93 E9 E4 19 E2 93 7A 32 42 45 37 23 57
WWW: http://www.anatom.uni-tuebingen.de/~richi/


--
.............................................................................
David L. Thompson                          The University of Montana
mailto:[EMAIL PROTECTED]                 Computer Science Department
http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
                                           Work Phone : (406)257-8530

Reply via email to