
Finding text within functions
Started by Mark Snowshall, Dec 14 2006 09:41 AM
9 replies to this topic
#1
Posted 14 December 2006 - 09:41 AM
Does anybody have or know of any tools/reports for searching a range of functions for a particular piece of text?
As TNT Logistics Ltd. have been sold off and have been rebranded as CEVA Logistics Ltd. and we need to remove all references to TNT on screens and reports. We have logic search/replace tools but finding 'TNT' in screens and reports is a nightmare.
As TNT Logistics Ltd. have been sold off and have been rebranded as CEVA Logistics Ltd. and we need to remove all references to TNT on screens and reports. We have logic search/replace tools but finding 'TNT' in screens and reports is a nightmare.
#2
Posted 14 December 2006 - 10:00 AM
Hi,
We do that, every few years when we get bought out by another company
We just search through the Bootstrap functions and replace the text automatically.
I am planning to put something like this into ProIV IDE sometime soon. You can search on a single function currently in IDE, but I need to extend it to work off a list of functions and system wide.
If you want, I can write you a seperate utility to do it, but I would have to charge you for it
What P4 version are you on, and what function editor(s) do you use (Native, SL, VIP, IDE)?
I think I remember that you are on GUI P4 also, arnt you?
Rob.
We do that, every few years when we get bought out by another company

We just search through the Bootstrap functions and replace the text automatically.
I am planning to put something like this into ProIV IDE sometime soon. You can search on a single function currently in IDE, but I need to extend it to work off a list of functions and system wide.
If you want, I can write you a seperate utility to do it, but I would have to charge you for it

What P4 version are you on, and what function editor(s) do you use (Native, SL, VIP, IDE)?
I think I remember that you are on GUI P4 also, arnt you?
Rob.
#4
Posted 14 December 2006 - 10:17 AM
Not sure you should use the word 'Upto Speed' when associating it to VIP

#6
Posted 14 December 2006 - 10:52 AM
aaahhh... Now I know why I have so many problems with it....

#7
Posted 15 December 2006 - 09:31 AM
Hi
the following is an outline solution
the text that is output to screen can be in many different files
there is
function titles
screen formats
help messages
error messages
umsgs
screen fields - the values could be a literal or assigned via logic
tool-tips
Value variables
functdef - the function title/description
hdr.pro - screen formats
msgf.pro - help/error
logic.pro - umsg's
fvardef - file/field help messages
fldspec - screen fields and help messages
lsdef.pro - GUI LS title
vardef.pro - some value variable could be displayed on screens / repors etc
you could write pro-iv function to search each of these files to check for the text string in each possible field on the different files
get one of the tools that will dump the contents of the pro-isam bootstraps to a text file and then search the text file for the text-string (this is how I would do it) - We regularly dump the bootstraps to text files as it helps when carrying out analysis etc.
Using unix commands like "grep" to execute the searches of the bootstrap text files
also search on this forum, there is probably other postings on this subject
rgds
George
the following is an outline solution
the text that is output to screen can be in many different files
there is
function titles
screen formats
help messages
error messages
umsgs
screen fields - the values could be a literal or assigned via logic
tool-tips
Value variables
functdef - the function title/description
hdr.pro - screen formats
msgf.pro - help/error
logic.pro - umsg's
fvardef - file/field help messages
fldspec - screen fields and help messages
lsdef.pro - GUI LS title
vardef.pro - some value variable could be displayed on screens / repors etc
you could write pro-iv function to search each of these files to check for the text string in each possible field on the different files
get one of the tools that will dump the contents of the pro-isam bootstraps to a text file and then search the text file for the text-string (this is how I would do it) - We regularly dump the bootstraps to text files as it helps when carrying out analysis etc.
Using unix commands like "grep" to execute the searches of the bootstrap text files
also search on this forum, there is probably other postings on this subject
rgds
George
#8
Posted 15 December 2006 - 10:19 AM
Also...
RBHDR - Radio Group Text
RBSPEC - Radio Group Items Text
CBSPEC - Control Break Text
GLFPARMS - Global Parameter Text
LSFUN2 - FnKey Text
MENUDEF - Menu Text
OBJPROP - Object property Text
FUNCTDEF - Gui Icon Text
RBHDR - Radio Group Text
RBSPEC - Radio Group Items Text
CBSPEC - Control Break Text
GLFPARMS - Global Parameter Text
LSFUN2 - FnKey Text
MENUDEF - Menu Text
OBJPROP - Object property Text
FUNCTDEF - Gui Icon Text
#9
Posted 15 December 2006 - 12:28 PM
Hi
Rob, thanks for the fill-in on the additional files where text is recorded
Mark, to be sure dump all the bootstrap files into text files (I think you could exclude genfile.pro)
when replacing the
TNT Logistics Ltd
with
CEVA Logistics Ltd
maybe you could softcode these text value, that the text value comes from a Value Variable, might make life easier when the company is next sold on (unless of course you are paid by the line of code you write)
I think pro-iv offer a service for language conversion of applications, do they have any tools that can be used to locate test-strings in the boot-straps ????
Rgds
George
Rob, thanks for the fill-in on the additional files where text is recorded
Mark, to be sure dump all the bootstrap files into text files (I think you could exclude genfile.pro)
when replacing the
TNT Logistics Ltd
with
CEVA Logistics Ltd
maybe you could softcode these text value, that the text value comes from a Value Variable, might make life easier when the company is next sold on (unless of course you are paid by the line of code you write)
I think pro-iv offer a service for language conversion of applications, do they have any tools that can be used to locate test-strings in the boot-straps ????
Rgds
George
#10
Posted 18 December 2006 - 03:07 PM
We managed to find a semi-decent search facility in VIP but then manually updated the various places manually in native as when we had imported our system into VIP 47 functions were either rejected or highlighted as having problems.....though they've been working fine for the last 9+ years.
In most places we put a value variable but a couple of places had to be left alone as they were to do with the data rather than visual stuff to be replaced.
Thanks for all the ideas and help but we think we've cracked it all now.
In most places we put a value variable but a couple of places had to be left alone as they were to do with the data rather than visual stuff to be replaced.
Thanks for all the ideas and help but we think we've cracked it all now.
Reply to this topic

0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users