Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Using carriage returns in a string


1 reply to this topic

anthonyh

anthonyh
  • Full Members
  • 93 posts

Posted 19 November 2002 - 17:53

Does anyone know if you can use carriage returns in a string? I've tried \n but, it doesn't seem to work.  Is there a different code that needs to be used?


Thanks,
Anthony
Product Availability Developer
Avantis
Invensys Process Systems

Using InstallShield Developer 7.04 - Basic Project

hambone

hambone
  • Members
  • 206 posts

Posted 20 November 2002 - 16:55

i don't know if this will work in the msi world but we used to use the asc code for the carriage return ( CR ) and line feed ( LF ) and add it to the string...

CR + LF = CHR( 10 ) + CHR( 13 )

so...

"This" + CHR(10) + CHR(13) + "is a test"

would result in:

This
is a test

when displayed...using vb,vfoxpro, etc...

will it work in msi strings ?