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 6226105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:57:54+00:00 2026-05-24T08:57:54+00:00

Im delphi programmer and used to use Java quite a bit a long while

  • 0

Im delphi programmer and used to use Java quite a bit a long while ago and now back onto a project in java again and im sure that there was a function or object that could be used to basically create a string with parameters and would replace said params just like PreparedStatement. Now for the life of me i cannot remember what this function is called or even if it exists outside of PreparedStatement or am i imagining things ???

For example, i want to take a string like this:

String ss = “(CODE, CATEGEORY, DESCRIPTION) VALUES (:CODE, :CATEGEORY, :DESCRIPTION)”;

and be able to do this

ss.setParam(0, "thisValue");
ss.setParam(1, "thus_value");

etc…

Any ideas

  • 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-24T08:57:54+00:00Added an answer on May 24, 2026 at 8:57 am
    MessageFormat mf = new MessageFormat(
        "(CODE, CATEGEORY, DESCRIPTION) VALUES ({0}, {1}, {2})");
    
    System.out.println(mf.format("thisValue", "thatValue", "theOtherValue"));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a possible Delphi bug (oh, damn it, I used again the word
Delphi 2009 has changed its string type to use 2 bytes to represent a
Delphi 2009 introduced a hierarchical system for project options configuration, where you set base
Delphi strings use single quotes, for example ' a valid string '. How does
Delphi (and probably a lot of other languages) has class helpers. These provide a
Delphi 2009, among some cool stuff, has also just got Anonymous methods. I've seen
Delphi has a $WARN compiler directive that allows one to selectively enable or disable
Delphi 8 introduced Class Helpers for the purposes of mapping the VCL/RTL to the
Delphi sometimes adds {$R *.res} in front of the unit path in the .dpr
In Delphi, I want to be able to create an private object that's associated

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.