OK thanks, I work with RunRev 2.7.3 on Mac OSX 10.4.7 and the copied text is bold in the .app but after testing the .exe with Windows XP Pro SP2 the copied text isn't bold. Is Windows handling things different?
Then there is still my little problem that after coping text into the assigned field it isn't pasted after the last line. As I described, it worked before I started using htmlText. Any help on this one? My code: on mouseUp put "" &cr into tData if fld "doel" = empty then beep then answer error "Er is geen doel gekozen!" then exit mouseup else put "<b>Doel</b>" & the htmltext of fld "doel" & "<p></p>" after tData if fld "materialen" = empty then beep then answer error "Er zijn geen materialen ingevuld!" then exit mouseup else put "<p><b>Materialen</b></p>" & the htmltext of fld "materialen" & "<p></p>" after tData if fld "evaluatie" = empty then beep then answer error "Er is geen evaluatie ingevuld!" then exit mouseup else put "<p><b>Evaluatie</b></p>" & the htmltext of fld "evaluatie" & "<p></p>" after tData if the htmltext of fld "doel" & the htmltext of fld "materialen" & the htmltext of fld "evaluatie" is not empty then put "<p>__________</p>" after tData else put "<p>__________</p>" & "<p></p>" after tData put tData after the last line of fld "pva" of card "Plan van aanpak" set the htmlText of fld "pva" of card "Plan van aanpak" to tData beep answer "De tekst is gekopieerd!" end mouseUp Thanks, William de Smet 2006/9/11, Ken Ray <[EMAIL PROTECTED]>:
On 9/11/06 3:38 PM, "Devin Asay" <[EMAIL PROTECTED]> wrote: > William, > > On Sep 11, 2006, at 11:53 AM, William de Smet wrote: > >> Hi there, >> Thanks to JB and Ken it works but I want to go a little further. >> Now I have 3 fields in which the user puts text and they all need to >> be combined into one field (all three with htmlText). >> The code used to work (without htmlText) and each line was pasted >> after the last line. >> Now it doesn't work anymore. And even the spaces between he separate >> fields are gone. What am I doing wrong? >> The code so far: >> on mouseUp >> put "" &cr into tData >> if fld "doel" = empty >> then beep >> then answer error "Er is geen doel gekozen!" >> then exit mouseup >> else put "<b>Doel</b>" &cr & the htmltext of fld "doel" &cr&cr >> after tData > > The problem is that now you are using htmltext instead of just > putting text from the variable into the field. HTML ignores carriage > returns, so what you'll have to do instead is this: > >> else put "<p><b>Doel</b></p>" & the htmltext of fld "doel" & "</ >> p><p></p>" after tData Right - this is called "normalizing" the data - all whitespace is effectively replaced with spaces, and then the space runs are reduced to a single space. So you can insert <p></p> tags or <br> tags where there were CRs, and for space runs replace " " for each space (160 is the non-breaking space character in HTML). HTH, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
-- ICT-coördinator Herman Broerenschool 2612 SP Delft 015-2141066 http://www.hermanbroerenschool-delft.nl _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
