| Which code you prefer to read? This... BegSr button1_Click Access(*Private) Event(*this.button1.Click) DclSrParm sender *Object DclSrParm e System.EventArgs Connect pgmDB DclFld Status Type( *Integer4 ) Status = ClearMember( pgmDB, "Membership", "[User]", "*First" ) If ( Status = dgErrorNumber.dgEOK ) MsgBox "File cleared successfully." Else MsgBox "Error code encountered: " + Status.ToString() EndIf Disconnect pgmDB EndSr Or this... BegSr button1_Click Access(*Private) Event(*this.button1.Click) DclSrParm sender *Object DclSrParm e System.EventArgs Connect pgmDB DclFld Status Type( *Integer4 ) Status = ClearMember( pgmDB, "Membership", "[User]", "*First" ) If ( Status = dgErrorNumber.dgEOK ) MsgBox "File cleared successfully." Else MsgBox "Error code encountered: " + Status.ToString() EndIf Disconnect pgmDB EndSr To get the latter result, download a free copy of the CopySourceAsHtml utility and use its "Copy as HTML" option to paste code from Visual Studio to our forum. http://www.jtleigh.com/people/colin/software/CopySourceAsHtml/ While we can't enforce the use of utility, the quality of post responses will be directly proportionate to the readability of the code you post! See this post for a bit of further discussion and examples: http://forum.asna.com/Topic9-14-1.aspx rp
|