Topic: GetDir / GetCurrentDir

Hi everybody,

I've been trying to get the GetDir or GetCurrentDir to work and have followed some examples from delphibasics.co.uk but with no success. Is it possible that these commands are not available in the vocabulary of My Visual Database ?

Example

var
  dir : string;

begin
  // Get the current directory
  dir := GetCurrentDir;
  ShowMessage('Current directory = '+dir);
end;


Show full unit code
   Current directory = C:\Program Files\myproject\images\

Thanks for any help you can give me.

Re: GetDir / GetCurrentDir

Hi Jeffmtl,
Although MVD is based on Delphi, it doesn't always use the exact same commands.
Please see the attached which maybe helps.
Derek.

Post's attachments

Attachment icon currdir.zip 335.25 kb, 291 downloads since 2020-03-11 

Re: GetDir / GetCurrentDir

Thanks Derek

That's what I was looking.

Mike