Define Class Example as Custom nProperty1 = 1 && Description of property goes here?? * Description of property goes here?? cProperty2 = 'SomeProp' * Description of property goes here?? * Could span across multiple lines?? cProperty3 = 'SomeProp' * Description of method goes here?? * Could span across multiple lines?? Procedure MethodOne(tnParameter1, tcParameter2) *-- Code goes here EndProc EndDefineAs an example, here is how it's handled in C#:
/// <summary> /// Updates the loaded entity with the contents from a quote object /// </summary> /// <param name="quote"></param> public void UpdateEntityFromStockQuote(StockQuote quote) { if (this.Entity == null) return; if ( !string.IsNullOrEmpty(quote.Company) ) this.Entity.Company = quote.Company; // if the price isn't set service is down or not providing data at the moment if ( quote.LastPrice == 0.00M ) return; this.Entity.LastPrice = quote.LastPrice; this.Entity.LastDate = quote.LastQuoteTime; this.Entity.OpenPrice = quote.OpenPrice; this.Entity.Change = quote.NetChange; this.Entity.LastDate = quote.LastQuoteTime; this.Entity.ItemValue = this.Entity.LastPrice * this.Entity.Qty; }