Message 1 of 4
Find replace function...
Not applicable
07-19-2007
12:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to write a find and replace function that finds Text or MText fractions and replaces them with our bigfont. The strings that it needs to find are as follows:
1/16 --> [1
1/8 --> [2
3/16 --> [3
1/4 --> [4
....
15/16 --> [T
------
Example:
Finds and changes the string:
31'-1 5/8" (W16x31 x 31'-0 5/8")
to the string:
31'-1]0" (W16x31 x 31'-0[0")
Doesn't change the string:
Don't Change / This to anything...
Thanks,
MSR
The function needs to work VERY quickly as it will be run as part of an add on a batch process.
Any help will be much appreciated.
1/16 --> [1
1/8 --> [2
3/16 --> [3
1/4 --> [4
....
15/16 --> [T
------
Example:
Finds and changes the string:
31'-1 5/8" (W16x31 x 31'-0 5/8")
to the string:
31'-1]0" (W16x31 x 31'-0[0")
Doesn't change the string:
Don't Change / This to anything...
Thanks,
MSR
The function needs to work VERY quickly as it will be run as part of an add on a batch process.
Any help will be much appreciated.