New topic: 

Where do I write functions in REALbasic!?

<http://forums.realsoftware.com/viewtopic.php?t=30632>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       Eclipse           Post subject: Where do I write functions in 
REALbasic!?Posted: Sat Oct 24, 2009 6:29 am                        
Joined: Sat May 19, 2007 6:01 am
Posts: 82              This may sound like a silly question... I've searched 
this forum, looked in all the documentation but still, I don't understand some 
very simple things...
Code:
index.asp
<%
FUNCTION funcAddText(myVar1, myVar2, myVar3)
  myTxt = myVar1
  myTxt = myTxt & ", " & myVar2
  myTxt = myTxt & ", " & myVar3
  funcAddText = myTxt
END FUNCTION

response.write funcAddText("my", "simple", "test...!!")

FUNCTION funcAddNumbers(myVar1, myVar2, myVar3)
  myTxt = myVar1
  myTxt = myTxt + myVar2
  myTxt = myTxt + myVar3
  funcAddNumbers = myTxt
END FUNCTION

response.write funcAddNumbers(5,3,10)
%>


This code will work *AS IT IS*. Just make whatever-name.asp -file and it will 
work. How do I write functions with unlimited number of values sent to each 
function in Realbasic? Where do i put this code??

I've looked at Methods... but they are only limited to one parameter(??) and 
for me, that's no alternative.   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to