Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REDUCE Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00511185
Message ID:
00511451
Views:
21
>>>>>>>>Does anyone know a native VFP7 function that replaces the old REDUCE function in Foxtools. I know about STRTRAN() function is similar, but the old REDUCE function would accept many search strings.
>>>>>>>
>>>>>>>REDUCE is still available in the FoxTools.FLL that comes with VFP7.
>>>>>>
>>>>>>I'm looking to get away for using that library. Is there an equivilent built in function?
>>>>>
>>>>>Don't think so. That must be why it's still in FoxTools.
>>>>
>>>>
>>>>Not necessarily. There are several functions that were put into VFP itself, but not removed from FoxTools.
>>>
>>>Really? I thought the ones that got incorporated into native Fox, were removed from FoxTools. I do see that GETFILEVERSION is still in FoxTools (AGETFILEVERSION() in VFP), whereas JUSTPATH, etc., were removed.
>>
>>
>>They're still in the help file.
>
>So they are. But I don't see them in a DISPLAY STATUS. Things would probably not work at all if they were still there AND in VFP native language, too.

Fred,

Actually, I think that even if they weren't removed, it wouldn't cause a problem. The compiler would probably resolve the reference to the native function. Keeping them in the library would therefore be pointless. OTOH, leaving GetFileVersion() in the library makes sense since removing it would break existing code.

FWIW, there are still some useful functions in the library such as Reduce(). RGBComp() is one that comes to mind right away.

I would hope that the Foxteam will continue to add new functions to library as sort of a testing ground for future enhancements. In VFP 6.0, for example, three functions were added interfacing with the Winsock library.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform