xtrim Posted January 5, 2006 Posted January 5, 2006 I'm using TextColor to Hilite some words in lines. The problem is it shows them with a space-like distance from their position. In the first example i'm replace "ebook" and in the second "is". as you can see it doesn't look good. I tried to change fonts and I have the latest update (FMD 7.03). Any suggestions to what may cause this problem?
xtrim Posted January 5, 2006 Author Posted January 5, 2006 (edited) Substitute ( text ; searchString ; TextColor ( text1 ; RGB ( red ; green ; blue ) ) ) Edited January 5, 2006 by Guest
LaRetta Posted January 5, 2006 Posted January 5, 2006 (edited) You might wish to use a global field in which Users can insert the text they wish to highlight, maybe called gText. Also, you used comma and vs. 7 requires semi-colon. Try this: Substitute ( line ; gText ; TextColor ( gText ; RGB ( 255; 0; 0 ) ) ) UPDATE: XTRIM, you changed your calc. Regardless, the above works. LaRetta :wink2: Edited January 5, 2006 by Guest Added update
xtrim Posted January 5, 2006 Author Posted January 5, 2006 This is exactly what i originaly was doing, but same results...
xtrim Posted January 5, 2006 Author Posted January 5, 2006 Your example is working just fine...so maybe my file is corrupt or maybe it's a load issue (500,000 records....)?
LaRetta Posted January 5, 2006 Posted January 5, 2006 Corruption maybe but I doubt it. Are you sure you don't have a space as in " is" ?? Have you tried it using a global field? Can you attach your file? Your example line looks wonky to me. Are those separate sentences concatenated? Maybe you have a space in there somewhere because it surely works.
mr_vodka Posted January 5, 2006 Posted January 5, 2006 Can you post a copy of the file so that we may check it to see if we can replicate the problem as well?
comment Posted January 6, 2006 Posted January 6, 2006 Your sample looks fine on my computer. Note: please use .zip when attaching files - this forum does not handle .rar well.
sbg2 Posted January 6, 2006 Posted January 6, 2006 Just to note this looks fine on my windows based machine as well.
mr_vodka Posted January 6, 2006 Posted January 6, 2006 (edited) XTrim I have replicated your problem in your file. The problem seem to be with the data in the main text field itself (line). The calculation is fine. If I create a new record and TYPW the exact same data in the new field it formats it correctly. Where did this data come from? Did you copy and paste it? Was it imported? However it may have been populated; know that it is is NOT the calculation. It is the data. Edited January 6, 2006 by Guest Added screenshot
xtrim Posted January 6, 2006 Author Posted January 6, 2006 The data is imported from a text file with the troi file plugin... I leave the data unformatted because it is required. But still it is strange because in the line itself there are no problems, only when you color it...and how come on some computers it is working fine? strange. I'll look into it again... tnx everyone
Recommended Posts
This topic is 6960 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now