Skip to content

Instantly share code, notes, and snippets.

View bowogit's full-sized avatar

Eko Prabowo bowogit

  • Jakarta Indonesia
View GitHub Profile
@bowogit
bowogit / UploadviaFTP.pas
Last active May 25, 2026 18:32
Cara Upload File menggunakan service FTP.
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;
@bowogit
bowogit / Transloadexeltodb.pas
Created February 10, 2016 05:34
Cara mentransload dari ms Excel ke database; Field name dari database bisa disesuaikan sendiri.
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;
@bowogit
bowogit / fmtCustDate.pas
Last active February 10, 2016 05:17
Fromat Custom Date (dd/mm/yyyy to yyyy-mm-dd)
{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);