•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 456,539 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,245 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser: Programming Forums
Views: 1577 | Replies: 1
![]() |
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi everyone,
As the title says I am have two problems:
1) I want to copy a template database (.dbf) and name it based upon user input into an edit box, however, I am getting an error when I try to compile my code saying that the PChat type is incompatible with the String type. Is there any way I can solve this? The example code can be found below.
2) Secondly I would like to obtain the string value of the currently selected item of a Win32 Tree View. I do not have any code to illustrate my problem so I have used a similar item (a combo box) to show you what I would like to do.
Basically what I am asking is how would I use the above code with a Win32 Tree View rather than a Combo Box?
Thanks in advance
As the title says I am have two problems:
1) I want to copy a template database (.dbf) and name it based upon user input into an edit box, however, I am getting an error when I try to compile my code saying that the PChat type is incompatible with the String type. Is there any way I can solve this? The example code can be found below.
{There is an edit box on the form called EditBox1 and a button called Button1. The template database is called template.dbf and is in the databases directly. I wish to copy the new file to the same directory.}
procedure TForm1.Button1Click(Sender: TObject);
var getname : String;
begin
getname := concat('databases\',Edit1.Text,'.dbf');
CopyFile('races2.dbf',getname,true);
end;2) Secondly I would like to obtain the string value of the currently selected item of a Win32 Tree View. I do not have any code to illustrate my problem so I have used a similar item (a combo box) to show you what I would like to do.
{There is a combo box on the form called ComboBox1 and a button called Button1.}
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage(ComboBox1.Text);
end;Basically what I am asking is how would I use the above code with a Win32 Tree View rather than a Combo Box?
Thanks in advance
Last edited by jglochhead : Oct 12th, 2007 at 11:30 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Pascal and Delphi Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- tree view + nodes get null? is this possible? (ASP.NET)
- Dijkstra's alogirthm & Shortest path problems (Computer Science and Software Design)
- How to do this tree view information (ASP.NET)
- Sata Problems!!! (Troubleshooting Dead Machines)
- Tree View (ASP)
- VB6 And Organization Tree (Visual Basic 4 / 5 / 6)
- MSCONFIG and Task Manager (Viruses, Spyware and other Nasties)
- IE6,Firefox & Opera browser problems (Web Browsers)
- Which distro for me? (*nix Software)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Two Statements in IF?
- Next Thread: Help


Linear Mode