Tuesday, March 14, 2023

Get Resource file path using x++

 Get the Resource file path using x++.


    ResourceNode resourceNode;
    FilePath filePath;
	
    resourceNode = SysResource::getResourceNode('Resource Name');
	
    if (resourceNode)
    {
	resourceNode.AOTload();
		
	filePath = SysResource::saveToTempFile(resourceNode);
    }
    Info(filePath);


Keep Daxing!!

No comments:

Post a Comment