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
Web Services Platform Architecture: Soap, WSDL, WS-Policy, WS-Addressing, WS-Bpel, WS-Reliable Messaging and More by Francisco Curbera, Frank Leymann, Tony Storey, Donald Ferguson, Sanjiva Weerawarana
Other books claim to present the complete Web services platform architecture, but this is the first one I've seen that really does. The authors have been intimately involved in the creation of the architecture. Who better to write this book?
See at: Amazon.co.uk | Amazon.com |