Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 96423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:48:45+00:00 2026-05-10T23:48:45+00:00

Possible Duplicate: What's wrong with Delphi's “with” I am have a problem debugging code

  • 0

Possible Duplicate:
What's wrong with Delphi's “with”

I am have a problem debugging code that uses a ‘WITH’ statement in BDS 2006 The debugger will not show the values of the variables with in a class or record. Am I doing something wrong or does BDS 2006 have a bug ?

type   TNumber = class       Num: Integer;   end;  implementation  {$R *.dfm}  var    MyNumber: TNumber;  procedure TForm2.FormCreate(Sender: TObject); begin    MyNumber := TNumber.Create;    MyNumber.Num := 10;   /// MyNumber.Num Can be seen with debugger    with  MyNumber do    begin      Num := Num +1 ;           /// Num is not seen by the  debugger      MyNumber.Num := Num +1 ;  /// MyNumber.Num is seen but Num is not seen by the  debugger    end; end; 

EDIT:

Sure one can use the full name of the variable But things become very messy if you have a complex structure with more than one level

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:48:45+00:00Added an answer on May 10, 2026 at 11:48 pm

    With is considered by many one of those language features that falls into the ‘just because you have it doesn’t mean you have to use it’ category. There are very few occasions where I’d give it house-room – I’ve found one or two cases where it’s use is essential when using extremely complex multi-level structures where the compiler doesn’t do quite as you’d expect without it and it is easier to include, but in 10 years of coding Delphi I think these could be counted on the fingers of one hand.

    It does tend to get used rather a lot in examples as the code certainly looks cleaner, but in practice the maintenance impact of figuring out if a variable is simple or part of a structure when reviewing code you didn’t write or haven’t used for a period easily outweighs that. The known issues with the debugger on every version of Delphi I’ve ever used is the clincher.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 63k
  • Answers 63k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer 1) Yes, it's likely a view that uses the chart… May 11, 2026 at 10:30 am
  • added an answer You can use `t for a tab character in a… May 11, 2026 at 10:30 am
  • added an answer You could fight the good fight and try to get… May 11, 2026 at 10:30 am

Related Questions

Possible Duplicate: What's wrong with Delphi's “with” I am have a problem debugging code
Possible Duplicate: What's the difference between NOT EXISTS vs. NOT IN vs. LEFT JOIN
Possible Duplicate: What Ruby IDE do you prefer? I've generally been doing stuff on
Possible Duplicate: What does map(&:name) mean in Ruby? I was watching a railscast and
Possible Duplicate: What are the obj and bin folders (created by Visual Studio) used
Possible Duplicate: What is the difference between "typename" and "class" template parameters? When defining
Possible Duplicate: What is the exact problem with multiple inheritance? Why is multiple inheritance
Possible Duplicate: What should a good BugTracking tool be capable of? Although there is
Possible Duplicate: What static analysis tools are available for C#? Guys, I'm looking for
Possible Duplicate: What is the best way to do loops in JavaScript What’s the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.