Home » Developer & Programmer » Forms » export the source code of an object
export the source code of an object [message #463409] Thu, 01 July 2010 04:17 Go to next message
FOX_55
Messages: 14
Registered: June 2010
Junior Member
i build a form to get the source code of an object from the database
and export the result into a text file
but i face a problem
I cannot get more than 780 line of code
because i have a package with 24080 line
and i have to put all this line in the text file

I attached the form

I know that the problem with the size
so please i need your help




CM: removed unnecessary colour coding - it doesn't make it easier to read you know.

[Updated on: Thu, 01 July 2010 04:45] by Moderator

Report message to a moderator

Re: export the source code of an object [message #463419 is a reply to message #463409] Thu, 01 July 2010 04:48 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Instead of fetching each line, concatenating it into a LONG and then writing the long into the file, why don't you just write each line from user_source into the file as you get it?
Re: export the source code of an object [message #463421 is a reply to message #463419] Thu, 01 July 2010 05:02 Go to previous messageGo to next message
FOX_55
Messages: 14
Registered: June 2010
Junior Member
could you show me how ?
Re: export the source code of an object [message #463424 is a reply to message #463421] Thu, 01 July 2010 05:15 Go to previous messageGo to next message
FOX_55
Messages: 14
Registered: June 2010
Junior Member
if i do this it will put the last line only
Re: export the source code of an object [message #463426 is a reply to message #463424] Thu, 01 July 2010 05:28 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Not if you call text_io inside the cursor loop - that's the normal way to do it.
Re: export the source code of an object [message #463427 is a reply to message #463426] Thu, 01 July 2010 05:30 Go to previous messageGo to next message
FOX_55
Messages: 14
Registered: June 2010
Junior Member
can you do it and show me the full form please...
Re: export the source code of an object [message #463430 is a reply to message #463427] Thu, 01 July 2010 05:33 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
You want me to show you how to move the text_io line you've got into the cursor loop?
I'm very sure you can do that yourself. Give it a try and post back what you've done if you get stuck.
It's really not complicated.

And stop posting in red.
Re: export the source code of an object [message #463438 is a reply to message #463430] Thu, 01 July 2010 06:12 Go to previous message
FOX_55
Messages: 14
Registered: June 2010
Junior Member
hey
thanks i do it
and it's work
thanks a lot

AND THS THE IS FINAL EDIT FOR THE FORM

[Updated on: Thu, 01 July 2010 06:40]

Report message to a moderator

Previous Topic: WEBUTIL_FILE.FILE_OPEN_DIALOG File filter not working
Next Topic: host command
Goto Forum:
  


Current Time: Fri Sep 20 03:34:26 CDT 2024