Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Comments after underscore line joiner in lotusscript

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notestemplates.com/#underscoreThenComments or http://www.notestemplates.com/A555F9/nn.nsf/ByAlias/underscoreThenComments


This is a little thing I found out while programming a long print line, might be useful to other lotusscript developers.





If you use the _ to split up a long line you can use a comment after the underscore eg

fullid = "Adam" & _          'firstname

           " " & _            ' space

           "Foster" & _       'lastname

           " - king of " &    ' position

           "the world! " &      ' department

or this line which sends out a comma separated variable line:

Print #fileNum%, category,   _             ' send line out to file
  doc.salescode(0), _                     ' should be 3 digits
  doc.salesauthorisationgroup(0), _       ' department
  transdate, _                            ' transactiondate ddMMyyyy
  1, _                                    ' always 1
  Format$(resp.value(0),"Fixed"), _       ' value
  resp.shortdescription(0), _             ' max 29 chars
  doc.salescode(0), _                     ' usernumber ??
  "",   _                                 ' urn leave blank for sage
  "3"                                     ' source  

 

Everyone else in the world is probably already doing this, oh well ...

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
Lotus Notes and Domino 6 Programming Bible by Brian Benz, Rocky Oliver
Covers all the programming techniques, concepts, and languages used with Notes and Domino, as well as the many new features of Domino 6 Thoroughly examines the Notes and Domino role with Java, XML, Web services, and other IBM products and technologies Provides extensive code and examples, many geared to the needs of administrators High-profile authors, known to their audience through conferences and articles Companion Web site shows example applications from the book running on a live Domino server and provides code download.
See at: Amazon.co.uk | Amazon.com |