| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 10373 | 2001-07-18 23:28:00 | Delphi 5 | Guest (0) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 15741 | 2001-07-18 23:28:00 | I am trying to output to a label a integer value (A number varible) The pascal commands do not work?! what is the command for outputting to a label a value? By the way i've really enjoyed the Delphi 5 articles brilliant! Any way need help for this boggle, the code in question is: GameMove := GameMove + 1; label10.caption := 'Moves Taken :',GameMove; What am i doing wrong? Kevin |
Guest (0) | ||
| 15742 | 2001-07-19 01:17:00 | Hi Kevin. I'm not a Delphi user, but I suspect that if your GameMove variable has been explicitly declared as an integer rather than the Delphi equivalent of a Variant, then you'll have to convert it to a string before using it as the caption property of a label. Cheers, Alan |
Guest (0) | ||
| 15743 | 2001-07-21 05:37:00 | For one thing instead of writing GameMove := GameMove + 1; Write Inc(GameMove); label10.caption:= 'Moves Taken : ' + IntToStr(GameMove); Remember just hit F1 for help while on a word in Delphi. |
Guest (0) | ||
| 1 | |||||