Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ImportFile

65 views
Skip to first unread message

RGeue

unread,
Jul 17, 2003, 8:23:17 PM7/17/03
to
Have just migrated app from PB5 to PB9. Previously the app was using
ImportFile to import text file:

li_rc = ids_messages.ImportFile(is_msgfile)

The strange thing is that this works fine in development environment but
once built the return code from ImportFile is null. I have put a couple of
debug message boxes in to show that the file can be opened and to show the
exact path. The file exists in the specified location and contains
records.

As anyone come across this before or have any suggestions?

Thanks
Rebecca

RGeue

unread,
Jul 18, 2003, 1:48:26 AM7/18/03
to
Yes, I've tried using the following two options when there are 50 rows in
the file and I still get the same null result:

li_Rc = ids_messages.ImportFile(Text!, is_msgfile, 1, 100, 1)
li_Rc = ids_messages.ImportFile(Text!, is_msgfile, 1, 20, 1)

It still results in a null return code only after it's been built.

This is code in pfcapsrv.pbl, pfc_n_cst_error, of_LoadPredefinedMsg
function.

Terry Dykstra

unread,
Jul 17, 2003, 11:25:59 PM7/17/03
to
Have you tried specifying the optional parameters? For some reason PB
thinks that one of the arguments is null.

--
Terry Dykstra (TeamSybase)
Techwave 2003 (PWB511: You Can Do That in InfoMaker? Cool!)
http://powerbuilder.codeXchange.sybase.com/
http://www.pb9books.com

<RGeue> wrote in message
news:3988189A5229EB620002214385256D67.000221DA85256D67@webforums...

0 new messages