Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTMLizing Strings?
Message
From
20/06/2001 16:35:37
 
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00521618
Message ID:
00521680
Views:
14
You can also "roll your own" with code like
<code>
#define NonBreakingSpace '&'+'nbsp'+';'  && So that this may render in the UT
#define LineBreak        '<'+'br'+'>'    && Same
function htmlize(tcInstring)
  local lcOutString
  lcOutString = STRtran(tcInstring,chr(09),NonBreakingSpace)
  lcOutString = strtran(lcOutString,chr(13),LineBreak)
  lcOUtString = strtran(lcOutString,chr(10),'')
  return lcOutString
endfunc
</code>
>The wwutility class in Rick Strahl's WebConnect has a function called wwUtils::DisplayMemo which does exactly what you are referring to.
>
>
>>Does anyone know of functions or objects out there that will take a string and "HTMLize" it? You know, convert a block of text with carriage returns and tabs into non-breaking spaces and line breaks and etc?
>>
>>I saw this and it make me think there might be something VFPish already out there:
>>
>>http://members.home.net/pjsteele/asp/
>>
>>Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform