QUESTION: What is the proper syntax and method to call a funtion found in another file ?
Part2: How do I pass AND RECIEVE the arguement between the two files?
I have two vortex files - ptest2 and pcall.
???? What is the right syntax for pcall so that it correctly calls the KW function in the file ptest2 ???
???? What is the right syntax so I can reference the argument from the calling module correctly ????
************** THIS IS ptest2 where the function is defined ********************
<script LANGUAGE="vortex">
<a name=main>
<!-- How do I specify on the next line an ARGUMENT for $kword to follow kw ?? -->
<kw >
</a>
<A NAME=kw kword >
<$lkw = <lower $kword>
<SWITCH $lkw >
<CASE "asia">
<!-- how do I get a MATCHES or LIKE in a case statement -->
<lower $kword> matches asia, asian or asians !
<CASE "latin">
<lower $kword> matches latina latino latin!
<CASE "new">
<lower $kword> matches new !
<CASE "old">
<lower $kword> matches old !
<DEFAULT>
no matches for <lower $kword> !
</SWITCH>
</A>
</script>
********************* This is pcall *************************
<script LANGUAGE="vortex">
<a name=main>
<ptest2 "asia">
</a>
</SCRIPT>
???? What is the right syntax for pcall so that it correctly calls the KW function in the file ptest2 ???
Part2: How do I pass AND RECIEVE the arguement between the two files?
I have two vortex files - ptest2 and pcall.
???? What is the right syntax for pcall so that it correctly calls the KW function in the file ptest2 ???
???? What is the right syntax so I can reference the argument from the calling module correctly ????
************** THIS IS ptest2 where the function is defined ********************
<script LANGUAGE="vortex">
<a name=main>
<!-- How do I specify on the next line an ARGUMENT for $kword to follow kw ?? -->
<kw >
</a>
<A NAME=kw kword >
<$lkw = <lower $kword>
<SWITCH $lkw >
<CASE "asia">
<!-- how do I get a MATCHES or LIKE in a case statement -->
<lower $kword> matches asia, asian or asians !
<CASE "latin">
<lower $kword> matches latina latino latin!
<CASE "new">
<lower $kword> matches new !
<CASE "old">
<lower $kword> matches old !
<DEFAULT>
no matches for <lower $kword> !
</SWITCH>
</A>
</script>
********************* This is pcall *************************
<script LANGUAGE="vortex">
<a name=main>
<ptest2 "asia">
</a>
</SCRIPT>
???? What is the right syntax for pcall so that it correctly calls the KW function in the file ptest2 ???