Showing posts with label Resource file. Show all posts
Showing posts with label Resource file. Show all posts

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!!