The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 pe_rmdir( );
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

billaravi

USA
14 Posts

Posted - 08/11/2005 :  6:21:55 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (7.5):
Operating System:WINXPPRO;

Hi I am trying to use the function pe_rmdir(); in the following way to delete a subfolder in my origin project. But i get the followig error
:Error, function or variable void pe_rmdir not found


string fldSubFolderName = "B16";
Folder fldSubFolder;
fldSubFolder = fldRootFolder.Subfolders(fldSubFloderName);
if (fldSubFolder.IsValid())
{
printf("found the subfolder");
printf("deleting the subfolder");
pe_rmdir(fldSubFolder);
}
else
{
printf("subfolder not found, creating...\n");
fldSubFolder = fldRootFolder.AddSubfolder(fldSubFloderName);
}


Any suggestions...plzz
Thanks
Ravi

Mike Buess

USA
3037 Posts

Posted - 08/11/2005 :  8:08:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Ravi,

pe_rmdir() and all other functions in LT_PE.c are meant to be called from LabTalk, not OriginC. Replace pe_rmdir(fldSubFolder) in your function with this...
if( !fldRootFolder.RemoveSubFolder(fldSubFolderName) )
{
printf("Error!!! Can't remove subfolder %s !\n", fldSubFolderName);
}


Mike Buess
Origin WebRing Member
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000