Class: Images |
How to Read: Property/Method(Parameter As Type, ...) As ReturnValue |
General Properties |
ErrorMsg() As String Purpose: Return Error Message if a method failed or no records were found |
ErrorMsg(ErrorMessage As String) Purpose: Set Error Message for display |
SQLString() As String Purpose: Return SQL String used for database query |
ImagePath() As String Purpose: Return Image Path after calling CreateImagePath() |
File Handling Properties and Methods |
Image Handling Properties and Methods |
Image Counter Handling Properties and Methods |
General Methods |
CreateImagePath(PictureFilePath As String, FilenameOrMLS As String) As String Purpose: Create Image Path w/ correct Folder Number extracted from Filename or MLS Requires: Complete Filename (i.e, 980001A.jpg) w/wo letter designator or MLS Returns: Complete Path w/ Folder Number |
ExtractFileName(PictureFilePath As String) As String Purpose: Extract Filename from complete path - ExtractFileName(""E:\mls_voyager_pictures\980001A.jpg"") returns '980001A.jpg' Requires: Complete Path\Filename Returns: Filename - successful; False - error |
ExtractLetter(Filename As String) As String Purpose: Extract the Letter Designator from a filename ExtractLetter(""980001A.jpg"") returns 'A' Requires: Complete Filename (i.e, 980001A.jpg) w/ letter designator Returns: Letter - successful; * - no letter found; False - error |
ExtractFolderNo(FilenameOrMLS As String) As Integer Purpose: Extract the Folder Number (right-most number) from a filename or valid MLS number ExtractLetter(""980001A.jpg"") returns '1' ExtractLetter(""980001"") returns '1' Requires: Complete Filename (i.e, 980001A.jpg) w/wo letter designator or MLS Returns: Number - successful; (-1) - error or no number found |
ExtractMLSNo(Filename As String) As Long Purpose: Extract the MLS number from a filename ExtractLetter(""Boise980001A.jpg"") returns '980001' Requires: Complete Filename (i.e, 980001A.jpg) w/wo letter designator Returns: MLS Number - successful; (-1) - error or no number found |
ConvertLetterToValue(Letter As String) As Long Purpose: Convert Letter Designator to a number value (up to AYZ or 1352) Requires: Letter (up to AYZ) Returns: Number - successful; 0 - error |
ConvertValueToLetter(Number As Long) As String Purpose: Convert number value to a Letter Designator (1 to 1352 or A to AYZ) Requires: Whole Number (1 to 1352) Returns: Letter - successful; Empty String - error |
GetNextLetter(PictureFilePath As String, MLSNumber As String) As String Purpose: Searches file system for files with MLS Number in filename, then finds highest letter designator and returns the lext letter (up to AYZ) Requires: Complete Path; MLS Number Returns: Letter - successful; Empty String - no files found; False - error |