![]() ![]() (I don’t remember what will happen if you do what you’re doing. Also, you don’t need Count := Count + 1 because it will automatically increment the for loop variable for each iteration of the loop. Furthermore, all versions of Pascal (Delphi included) will automatically set the for loop variable to the lower bound (in your case 1), when the loop begins. integer, etc.) to 0 when the variable is created. First of all, Delphi (but not all versions of Pascal) will initialize any ordinal type variable (e.g. ![]() LblSum.Caption := ‘Cumulative Sum:’ + IntToStr(Sum) Īlright, as Brandon said, this isn’t a Borland Delphi forum-here, Delphi refers to the auto parts maker Delphi, a sponsor of several FIRST teams.Īs for your code, you’ve got all sorts of trouble with the use of the variable Count. LblIterationNumber.Caption := ‘Iteration Number:’ + Number Number := InputBox(‘Enter number’, ‘Number’, ‘’) //create InputBox Procedure TfrmAddFor.btnAddClick(Sender: TObject) She wants a set of integer numbers that people enter into boxes and results give total…Can anyone help. My friend has a problem with this delphi code… ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |