Register and join over 40,000 other developers!
Recent Topics
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
-
Job Gig PHP Form Needed
PJohnson - Apr 18 2019 03:55 AM
-
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
-
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

5 replies to this topic
#1
Posted 12 April 2007 - 06:58 AM
Hi.
I'm building my project in Delphi 5 and I've just started using the database functions.
The problem is, I want to convert the value from some of these database components into strings so I can use them with other, standard objects, such as EditBox and Label.
Does anyone here know how to convert the value from say DBEdit into a string? Unfortunatelly the database objects aren't like the EditBoxes, they have a 'name' property but everytime I try copying across the 'name' from a DB object into a textbox or label it comes up with the name of the object and not the value. And there is no caption property.
Any help is appreciated tnx.
I'm building my project in Delphi 5 and I've just started using the database functions.
The problem is, I want to convert the value from some of these database components into strings so I can use them with other, standard objects, such as EditBox and Label.
Does anyone here know how to convert the value from say DBEdit into a string? Unfortunatelly the database objects aren't like the EditBoxes, they have a 'name' property but everytime I try copying across the 'name' from a DB object into a textbox or label it comes up with the name of the object and not the value. And there is no caption property.
Any help is appreciated tnx.
#2
Posted 12 April 2007 - 09:07 AM
Try DBEdit1.Field.AsString or DBEdit1.Text or DBEdit1.EditText
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
My MineCraft server site: http://banishedwings.enjin.com/
#3
Posted 12 April 2007 - 09:40 AM
It worked!Try DBEdit1.Field.AsString or DBEdit1.Text or DBEdit1.EditText
You're a life saver... thanks!

#4
Posted 13 April 2007 - 08:26 AM
No problem. I'm glad it worked.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
My MineCraft server site: http://banishedwings.enjin.com/
#5
Posted 23 April 2007 - 12:09 PM
Just another quick one,
How do you alter the DB objects values with standard objects? I'm trying to input the value from an editbox into one of the DBeditboxes. I've tried searching the help topics and searching google (along with a lot of guessing) but I couldn't find anything.
Thanks.
How do you alter the DB objects values with standard objects? I'm trying to input the value from an editbox into one of the DBeditboxes. I've tried searching the help topics and searching google (along with a lot of guessing) but I couldn't find anything.
Thanks.
#6
Posted 24 April 2007 - 08:21 AM
I'm not sure that's possible (I'd have to research). Are you trying to change the value in the DB or just change what's shown?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
My MineCraft server site: http://banishedwings.enjin.com/
Also tagged with one or more of these keywords: delphi, string
Language Forums →
C and C++ →
Why is similar string comparison giving different result?Started by nick112, 29 May 2017 ![]() |
|
![]() |
||
Language Forums →
C and C++ →
converting string to floatStarted by JonElias, 14 May 2016 ![]() |
|
![]() |
||
Language Forums →
HTML, CSS and Javascript →
How to find location of all the times a specific letter appears in stringStarted by 4ringsa6, 02 Mar 2016 ![]() |
|
![]() |
||
Language Forums →
Java →
How do I remove a character from a String?Started by dreddooo, 01 Oct 2015 ![]() |
|
![]() |
||
Language Forums →
Java →
Help needed making a String, which has all the letters in the rack (Scrabble game)Started by BobbyRedSox28, 25 May 2015 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download