Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Pascal/Delphi

Pascal/Delphi Forum for discussing Borland Delphi and Pascal coding techniques, tips and tricks.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-2007, 10:58 AM
ashleysmithd's Avatar   
ashleysmithd ashleysmithd is offline
Newbie
 
Join Date: Apr 2007
Posts: 9
Rep Power: 0
ashleysmithd is on a distinguished road
Question Converting DB values into strings

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-12-2007, 01:07 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,392
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

Try DBEdit1.Field.AsString or DBEdit1.Text or DBEdit1.EditText
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2007, 01:40 PM
ashleysmithd's Avatar   
ashleysmithd ashleysmithd is offline
Newbie
 
Join Date: Apr 2007
Posts: 9
Rep Power: 0
ashleysmithd is on a distinguished road
Default

Quote:
Originally Posted by WingedPanther View Post
Try DBEdit1.Field.AsString or DBEdit1.Text or DBEdit1.EditText
It worked!

You're a life saver... thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-13-2007, 12:26 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,392
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

No problem. I'm glad it worked.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-23-2007, 04:09 PM
ashleysmithd's Avatar   
ashleysmithd ashleysmithd is offline
Newbie
 
Join Date: Apr 2007
Posts: 9
Rep Power: 0
ashleysmithd is on a distinguished road
Question

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 04-24-2007, 12:21 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,392
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

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?
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB strings to C DLL malachi1984 Visual Basic Programming 0 05-11-2007 06:36 AM
Strings clookid PHP Tutorials 2 01-13-2007 04:23 PM
Combine two strings Chan PHP Forum 6 09-29-2006 07:02 PM
Seperate values in a string Chan C# Programming 4 07-25-2006 10:17 AM
Sudoku can be solved using SQL..Take a look! roger Database & Database Programming 5 07-04-2006 03:20 PM


All times are GMT -5. The time now is 02:59 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads