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

  • SEARCH
  • Home
  • 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 7618593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:26:36+00:00 2026-05-31T03:26:36+00:00

I have an app I wrote quite a while ago. It is a database

  • 0

I have an app I wrote quite a while ago. It is a database app, with a lot of Ttable and TSQL components, placed on the Main Form (so it is quite messy). I am updating the app, and I want to use a datamodule. If I do that, I will have to change all of my code from Table.fieldbyName to Datmodule.FieldByName. I will have to do this type thing with a lot of different components, in a lot of different calls, (Table.Edit, Table.Post, etc) My question is… Is there a way to tell the compiler, if you don’t find the object in the current form, look for it in TDatamodule? I realize I can use the ‘With DataModule do’ syntax, but I am hoping there is something else. Is there something I can do with NameSpace here?

  • 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. Editorial Team
    Editorial Team
    2026-05-31T03:26:38+00:00Added an answer on May 31, 2026 at 3:26 am

    I think the correct way to approach this would be to rename your tTable references using a search/replace tool, such as GExperts Grep Searching. Example: if you have a table called “tSales” that is now located in a datamodule named “Dm”, you could just do a Grep Search for “tSales” for all files within the current project, and then replace with “Dm.tSales”. The result is code that is much more readable and maintainable going forward.

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

Sidebar

Related Questions

We have a database app that we're beginning to write some new systems for
We have App A as main app. Now we build from it App B
I wrote a little PyGTK app: Workcycler Now I have the problem that I
I'm having quite some trouble to try and get an app I wrote in
I have a navigation based app. Press a button on main view, then I
Does anyone have any advice how to write such app? Or maybe knows some
So, there is problem - I have the order to write web-app on Kohana
I have been asked to write a compliment website/service for an iPhone app. The
Just trying to write my first ever WP7 app. I have several hundreds of
I'm wanting to write a whiteboard app. I have a beginning that renders a

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.