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.
Try DBEdit1.Field.AsString or DBEdit1.Text or DBEdit1.EditText
No problem. I'm glad it worked.
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.
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?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks