Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Johncccc

    Why does printf not work for a label Caption?

    The syntax is correct for Builder 6. It compiles and runs. It just does not produce the string correctly. ie the string is empty. (The code completion feature of Builder even suggest that it is ok to use sprintf on a Labels Caption property)
  2. Johncccc

    Why does printf not work for a label Caption?

    woops soory i meant sprintf. sprintf is an AnsiString (String) function. It will work when u declare a String ie String str; str.sprintf("test %d", 10); It does not work (for me anyway) when u try to use it like this: Label1->Caption.sprintf("test %d", 10); Why is this...
  3. Johncccc

    Why does printf not work for a label Caption?

    Sorry if this has been asked before but :( The String.printf() function does not seem to work for Label->Caption. I know there are ways around this (assign to new String first etc.) but why does it not work? Thanks for any help.

Part and Inventory Search

Back
Top