RE: tsunami question

new topic     » goto parent     » topic index » view thread      » older message » newer message

Isn't that a horrible message?  Especially since it left one obvious 
problem out -- FILE DOES NOT EXIST.  I'd check to be sure the file is in 
the directory you are working from or that you have a path to the 
directory.  Every time I have gotten that message it was because the 
file didn't exist.

Euman got these messages from Tsunami and they're okay for a programer, 
but I asked Euman if I could trim them down and make them a little more 
user friendly.  He gave the ok, but I haven't had time to do it yet

George Walters wrote:
> 
> 
> Next problem, I've created all the files and now am trying to open one 
> to
> populate it and am getting this long message that it's not a file 
> created
> with trm or the header is corrupted or created by a different dll 
> version.
> Any Ideas??
> 
> george
> 
> ----- Original Message -----
> From: "Ron Austin" <ronaustin at alltel.net>
> To: <EUforum at topica.com>
> Sent: Wednesday, December 17, 2003 2:51 PM
> Subject: RE: tsunami question
> 
> 
> > That's interesting George, but I believe it assumes you are using the
> > "String based API"  and Euman used the "Pointer based API #1".
> >
> > I don't think there is a way of passing a filedef when creating the file
> > with the pointer base api.
> >
> > string  API: result= trmCreate(file$,FileDef$,OverWrite)
> > pointer API: result= trmCreate(file,OverWrite)
> >
> > pointer based assumes the filedef has already been defined.
> >
> > Maybe Euman will have a different answer, but that's the way I see it.
> >
> >
> > George Walters wrote:
> > >
> > >
> > > Ron, there was some interesting code (power basic) on the TRM website on
> > > this issue.
> > >
> > >
> > >  ' Open the existing Tsunami file
> > >
> > >  MultiUser& = %FALSE
> > >  File$      = "C:\My Data\Customers.dat"
> > >
> > >  hFile& = trm_Open(File$, MultiUser&)
> > >
> > >  IF hFile& < 1 THEN
> > >     Msg$ = "Error opening file:" + STR$(ABS(hFile&))
> > >     ' Display message
> > >
> > >  ELSE
> > >     ' File opened successfully
> > >     ' Get it's File Definition string
> > >
> > >     FileDef$ = trm_GetFileDef(hFile&)
> > >
> > >     ' Close the file so it can be recreated
> > >
> > >     Result& = trm_Close(hFile&)
> > >
> > >     IF Result& THEN
> > >        Msg$ = "Error closing file:" + STR$(Result&)
> > >        ' Display message
> > >
> > >     ELSE
> > >        ' The file is closed... we can now recreate it using the
> > >        ' file's original name and original File Definition string
> > >
> > >        OverWrite& = %TRUE
> > >
> > >        Result& = trm_Create(File$, FileDef$, OverWrite&)
> > >
> > >        IF Result& THEN
> > >           Msg$ = "Error recreating file:" + STR$(Result&)
> > >           ' Display message
> > >        ELSE
> > >           ' File recreated successfully
> > >        END IF
> > >
> > >     END IF
> > >  END IF
> > >
> > >
> > > ----- Original Message -----
> > > From: "Ron Austin" <ronaustin at alltel.net>
> > > To: <EUforum at topica.com>
> > > Sent: Wednesday, December 17, 2003 1:26 PM
> > > Subject: RE: tsunami question
> > >
> > >
> > > > George Walters wrote:
> > > > >
> > > > >
> > > > > Ron, I understand the Create function, but using this you have do
> define
> > > > > all
> > > > > over again the characteristics of the file. I was hoping that a
<snip>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu