Excel VBA reminders / snipbits

Consider using Collections, not arrays Use SET when assigning Objects Set InvoiceWS = ActiveWorkbook.Sheets("Invoice") Function InArray(arr, val) As Boolean    For arrloop = LBound(arr) To UBound(arr)       If arr(arrloop) =…

Comments Off on Excel VBA reminders / snipbits

Delphi Validating UK postcodes

http://www.daniweb.com/software-development/pascal-and-delphi/threads/276733/postcode-validation http://www.ml-consult.co.uk/foxst-39.htm function ValidPostcode(anInput: String): Boolean; var iSpacePos, I: byte; sInward, sOutward: String; begin Result := False; if (anInput = EmptyStr) then Exit; anInput := UpperCase(anInput); iSpacePos := Pos(' ',…

Comments Off on Delphi Validating UK postcodes