Click here to Skip to main content
14,659,323 members
Home » Discussions » Delphi
   

Delphi

 
GeneralHow to save urdu / arabic language from text box to database using delphi 7 Pin
Member 1427953123-Apr-19 19:55
MemberMember 1427953123-Apr-19 19:55 
SuggestionRe: How to save urdu / arabic language from text box to database using delphi 7 Pin
Maciej Los23-Apr-19 20:50
mveMaciej Los23-Apr-19 20:50 
GeneralRe: How to save urdu / arabic language from text box to database using delphi 7 Pin
Richard MacCutchan23-Apr-19 21:20
mveRichard MacCutchan23-Apr-19 21:20 
QuestionDoes Delphi have an elseif statement? Pin
Member 129742359-Apr-19 8:22
MemberMember 129742359-Apr-19 8:22 
QuestionWhy is boolean true represented as -1? Pin
Member 129742359-Apr-19 1:17
MemberMember 129742359-Apr-19 1:17 
AnswerRe: Why is boolean true represented as -1? Pin
Eddy Vluggen9-Apr-19 1:25
professionalEddy Vluggen9-Apr-19 1:25 
GeneralRe: Why is boolean true represented as -1? Pin
Member 129742359-Apr-19 8:13
MemberMember 129742359-Apr-19 8:13 
QuestionThis output makes no sense in my program Pin
Member 129742358-Apr-19 13:15
MemberMember 129742358-Apr-19 13:15 
I'm doing a program that computes the sum and product of the integers from 1 to 5. Weird thing is when I run the program I get the correct answer for the sum. The sum says 15. Correct. But I get the wrong answer for product. I get 6.

I cannot figure out where I'm going wrong:

// This program computes the sum and product of the integers from 1 to 5

program SumAndProduct;

uses
  System.SysUtils;

var
i : integer;
sum : integer;
product : integer;

begin
  sum := 0;
  product := 1;

  begin
    for i := 1 to 5 do
      sum := sum + i;
      product := product * i;
  end;

  WriteLn('The sum is ' + IntToStr(sum));
  WriteLn('The product is ' + IntToStr(product));

  WriteLn;
  WriteLn('Press Enter to quit...');
  ReadLn;
end.

AnswerRe: This output makes no sense in my program Pin
Member 129742358-Apr-19 13:22
MemberMember 129742358-Apr-19 13:22 
Questionhow to save urdu/arabic language from textbox to database using delphi 7 Pin
Member 1099181826-Sep-17 0:06
MemberMember 1099181826-Sep-17 0:06 
AnswerRe: how to save urdu/arabic language from textbox to database using delphi 7 Pin
docNyie24-Oct-17 4:24
MemberdocNyie24-Oct-17 4:24 
QuestionException class $c000005 Pin
Dionisio Huerta Rosario16-Aug-17 8:02
MemberDionisio Huerta Rosario16-Aug-17 8:02 
AnswerRe: Exception class $c000005 Pin
Richard MacCutchan16-Aug-17 21:16
mveRichard MacCutchan16-Aug-17 21:16 
GeneralMessage Closed Pin
13-Apr-20 19:38
Memberhuangzhidi13-Apr-20 19:38 
AnswerRe: Exception class $c000005 Pin
Eddy Vluggen13-Oct-17 22:41
professionalEddy Vluggen13-Oct-17 22:41 
AnswerMessage Closed Pin
25-Dec-18 18:46
MemberMember 1410026425-Dec-18 18:46 
Questionsteganography in delphy Pin
Member 128335384-Nov-16 19:36
MemberMember 128335384-Nov-16 19:36 
QuestionHow to get scrollbars in TGridPanel? Pin
NJdotnetdev22-Jul-16 4:15
MemberNJdotnetdev22-Jul-16 4:15 
QuestionInvalidate a Form? Pin
DSWC0127-Jun-16 6:50
MemberDSWC0127-Jun-16 6:50 
AnswerRe: Invalidate a Form? Pin
Jose A Pascoa1-Jul-16 5:07
MemberJose A Pascoa1-Jul-16 5:07 
Questionsend email usind embarcado 2015 Pin
Member 122520508-Jan-16 4:01
MemberMember 122520508-Jan-16 4:01 
QuestionXE8 Castalia Pin
Colin Mullikin3-Nov-15 5:04
professionalColin Mullikin3-Nov-15 5:04 
GeneralLoad XML string in to TTreeView Pin
NJdotnetdev6-Aug-15 5:23
MemberNJdotnetdev6-Aug-15 5:23 
GeneralRe: Load XML string in to TTreeView Pin
DeerBear5-Oct-15 1:10
MemberDeerBear5-Oct-15 1:10 
GeneralRe: Load XML string in to TTreeView Pin
NJdotnetdev5-Oct-15 1:53
MemberNJdotnetdev5-Oct-15 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.