Welcome! Log In Create A New Profile

Advanced

WD-Generating a file description on another Analysis

Posted by Toddy Utomo 
Toddy Utomo
WD-Generating a file description on another Analysis
July 08, 2009 05:46PM
Hi All,

I want to access the file from another Project Analysis via programming (HdeclareExternal), which must HDescribeFile, HDescribeItem, etc

Is there a fastest ways to "generate code" from a files/fields description?

TIA
Regards
Toddy


Piet van Zanten
Re: WD-Generating a file description on another Analysis
July 08, 2009 06:01PM
Hi Toddy,

If you have the analysis available on disk, you could use Hdeclare.
I use this code to transfer file content from an external analisys:
	HDeclare("Personel",EditAnalysis,"","Imp")
	HChangeDir("Imp",EditData)
	
	ProgressBar1..Text="Transfer in progress..."
	ProgressBar1=1
	ProgressBar1..MaxValue=HNbRec("Imp")
	ProgressBar1..Visible=True
	
	HCreation(Personel)
	FOR ALL "Imp" on "PersNr"
		ProgressBar1++
		IF NOT DateValid({"Imp.DateExit",indItem}) THEN
			HReset(Personel)
			HCopyRecord(Personel,"Imp")
			HAdd(Personel)
			HErrorDuplicates()
			HErrorIntegrity()
		END
	END	    
	HCancelDeclaration("Imp")
Regards,
Piet



Edited 1 time(s). Last edit at 07/08/2009 06:06PM by Piet van Zanten.
Jimbo
Re: WD-Generating a file description on another Analysis
July 08, 2009 06:02PM
Hi Toddy, you could HOpenAnalysis(..) the 'other' analysis .. this is the fastest way to use the file descriptions of other projects. There are a few commands to handle several analyses within a project .. Guenter
Hi Piet, Guenter ...Thanks

I try both Hdeclare and HOpenAnalysis

Regards
Toddy


Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: