i dont wanna do c#
so i chose delphi 7
could someone tell me simple things like
msgbox
DIM statement
IF statement
thanks!


Code: Select all
MessageBox(handle, 'Message Text', 'Message Title', MB_Type or MB_Icon);
Code: Select all
MB_OK
MB_OKCANCEL
MB_ABORTRETRYIGNORE
MB_YESNOCANCEL
MB_YESNO
MB_RETRYCANCEL
Code: Select all
MB_ICONERROR
MB_ICONQUESTION
MB_ICONWARNING
MB_ICONASTERISK
Code: Select all
If 1 = 1 Then
begin
MessageBox(handle, '1 = 1', '', MB_OK);
end;
Code: Select all
var varName: Type;
Code: Select all
var x: Integer;
begin
x := 1;
If x = 1 Then
begin
MessageBox(handle, 'x = 1', '', MB_OK);
end;
end;
Code: Select all
var
x: Integer;
msg: PChar;
begin
x:= 1;
If x = 1 Then
begin
msg := 'x = 1';
MessageBox(handle, msg, '', MB_OK);
end;
end;