Marie-Edith,

Thanks for reporting this, and figuring out the answer.  I've updated the
manual and the error feedback within the function so it should be easier
to figure out for others in the future.  For the record, if the target is
not found it returns the value 0 (i.e., false).

This function is a compiled function, written in c++.  If you download the
source, you can find its definition at
src/libs/PEBLString.cpp

But it is really a wrapper for something buried within the string-handling
classes. Many functions are written within PEBL code, and appear in the
pebl-lib\Utility.pbl or pebl-lib\Math.pbl or pebl-lib\Design.pbl files.
Although this function could have been written in PEBL using Substring(),
but I think I chose to use a compiled version for the sake of speediness.


Shane



>
> Hello,
>
> I did not find this in the archives, nor did I find where this function
> is defined:
>
> The manual says: FindInString("source","what_to_find")
>
> But when I try to use it (even with the example from the manual:
> FindInString("about","bo") which should answer "2") I get the following
> error:
>
> Incorrect number of arguments. wanted between 3 and 3 but got 2
>
> It seems that the third argument should be an integer, but what value? I
> tried some (0,1,2) but the function returns nothing (no error, no value).
>
> On a related point: is there a place where one could see how the pebl
> functions are defined?
>
> Thanks in advance for your help,
>
> M-E
>
>
> --
> ___________________________________________________________
>
> Marie-Edith Bissey
> Universita' del Piemonte Orientale 'Amedeo Avogadro'
> Dipartimento di Giurisprudenza e Scienze Politiche, Economiche e Sociali
> Via Cavour 84
> 15 121 Alessandria -- ITALIA
>
> email: [email protected]
> tel: +39-0131-283807 -- fax: +39-0131-283704
> http://polis.unipmn.it/php/showHomePage.php?who=bissey
>
> "The major difference between a thing that might go wrong and a thing
> that cannot possibly go wrong is that when a thing that cannot possibly
> go wrong goes wrong it usually turns out to be impossible to get at or
> repair."
> [The Hitch Hiker's Guide to the Galaxy]
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Pebl-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pebl-list
>



------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Pebl-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pebl-list

Reply via email to