The JIEFILE class
The JIEFILE class is introduced in JoPPS version 2.71 to allow the programmer to export data from database objects to a jiefile. For the moment only exporting data is supported.
 
    
        
            | 
             Constructor 
             | 
        
        
            | 
             CREATE (Sfn) 
             | 
            
             Instancieert een JIEFILE object. Een bestand met als naam Sfn wordt aangemaakt. Als een bestand met dezelfde naam reeds bestaat wordt het overschreven. 
             | 
        
        
            | 
             Destructor  
             | 
        
        
            | 
             FREE () 
             | 
            
             Dealloceert het JIEFILE object. Het jie-bestand op de harde schijf wordt afgesloten. 
             | 
        
        
            | 
             Methods 
             | 
        
        
            | 
             Write (Odatabaseobject[,Scomment]) 
             | 
            
             Schrijft het huidige record van het doorgegeven databaseobject (Odatabaseobject) naar het JIE-bestand. Scomment is een optionele opmerking die bij het record in het JIE-bestand wordt bijgehouden. 
             | 
        
        
            | 
             Common properties 
             | 
        
        
            | 
             Filename : S 
             | 
            
             De bestandsnaam van het JIE-bestand. 
             | 
        
        
            | 
             RecCount : D 
             | 
            
             Het aantal records in het JIE-bestand 
             | 
        
    
 
Example 1: Export all contact records to a JIE-file
 
client := CONTACTS.Create();
jie := JIEFILE.Create('c:\windows\temp\mycontacts.jie');
client.First();
while !client.Eof() do
{
 jie.Write(client);
 client.Next();
};
client.Free();
jie.Free();
 
Example 2: Export the first framemodel from the framelibrary to a JIE-file
 
framelib := FRAMES.Create();
jie := JIEFILE.Create('c:\windows\temp\myframe.jie');
framelib.First();
jie.Write(framelib);
jie.Free();
framelib.Free();
 
Note: a JIE file containing a frame- or ventmodel can only contain a single record!