Source language: Translate to:

"Best Fit" Function

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

SORRY FOR THE TIME

Postby virger » Tue Apr 01, 2008 12:24 pm

TRY THIS

THE FUNCTION
--------------

{NeoBook Function}
...FUNCTION MAY_BE
Version=5,54
Param=[%Dat1]|Text|Array 1
Param=[%Dat2]|Text|Array 2
Param=[%Result]|Variable|Result
{End}
strparse "[%Dat1]" "," "[vX]" "[_n]"
strparse "[%Dat2]" "," "[vY]" "[_n]"
setvar "[%Result]" ""
loop "1" "[_n]" "[c]"
setvar "[%Result]" "[%Result]~[vX[c]]~[vY[c]]"
endloop


TO TEST
--------
CREATE A BUTTON WITH
THIS ACTION


setvar "[ArrayX]" "1,2,3,4,5"
setvar "[ArrayY]" "5,4,3,2,1"
Call "MAY_BE" "[ArrayX]" "[ArrayY]" "[Resul]"


"PURA VIDA"
FROM COSTA RICA
User avatar
virger
 
Posts: 523
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central


Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 1 guest

cron