select eomonth( getdate(), -1 ) select eomonth( getdate() ) select eomonth( getdate(), 1 )Output:
---------- 2019-02-28 (1 row(s) affected) ---------- 2019-03-31 (1 row(s) affected) ---------- 2019-04-30 (1 row(s) affected)
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
select eomonth( getdate(), -1 ) select eomonth( getdate() ) select eomonth( getdate(), 1 )Output:
---------- 2019-02-28 (1 row(s) affected) ---------- 2019-03-31 (1 row(s) affected) ---------- 2019-04-30 (1 row(s) affected)
var
iCount : integer;
pBookmark : TBookmark;
pDataSetSource : TDataSet;
begin
...
Screen.Cursor := crHourGlass;
iCount := 1;
pBookmark := pDatasetSource.GetBookmark;
pDatasetSource.DisableControls;
try
pDatasetSource.First;
while not pDatasetSource.Eof do
begin
try
{ action with record }
finally
inc( iCount );
pDatasetSource.Next;
end;
end;
finally
pDatasetSource.GotoBookmark( pBookmark );
pDatasetSource.EnableControls;
Screen.Cursor := crDefault;
end;
var
i : integer;
pColumn : TcxGridDBColumn;
begin
...
for i := 0 to pGridView.VisibleColumnCount - 1 do
begin
pColumn := TcxGridDBColumn( pGridView.VisibleColumns[i] );
ShowMessage( pColumn.DataBinding.FieldName + ' , ' +
GetEnumName( TypeInfo(TFieldType),
ord( pColumn.DataBinding.Field.DataType ) ) );
end;
...
Output:postJournal.menuItemName( menuitemActionStr( InventJournalPostMovement ) );