This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function UploadFiles(aFiles, aAlias : String) : Boolean; | |
| Var | |
| aaAlias : String; | |
| Begin | |
| Result := False; | |
| if MyFTP.Connected Then MyFTP.Disconnect; | |
| MyFTP.Host := sFTPHost; | |
| MyFTP.Username := sFTPUserID; | |
| MyFTP.Password := sFTPPass; | |
| aaAlias := '<..Folder FTP server..>' + aAlias; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Procedure TransloadExcelTodb(aFileName : String); | |
| Function FormatExelDate (sD : String) : String; | |
| Var | |
| y, m , d : String; | |
| Begin | |
| y := RightStr(sD, 4); | |
| d := LeftStr(sD, 2); | |
| m := MidStr(sD, 4, 2); | |
| Result := y + '-' + m + '-' + d; | |
| End; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {Kasus nya tanggal formatnya dd/mm/yyyy | |
| mau dirubah menjadi format yyyy-mm-dd | |
| } | |
| Function FormatExelDate (sD : String) : String; | |
| Var | |
| y, m , d : String; | |
| Begin | |
| y := RightStr(sD, 4); | |
| d := LeftStr(sD, 2); |