Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: eRebol on Win32

From: john:schuhr at: 4-Jun-2001 8:44

No problem Marteen.. :) I just thought I'd play with it on Win32 and see what I could do with it. It works great, for the most part, but I'm still trying to work out scope within an rhtml page. Like the following: **SNIP** <html><body> <!--- Create a variable and print it's contents. Works great. ---> Step 1 <br> <rebscript> a: 1 print ["The number is: " a "<br>"] </rebscript> <!--- You'll notice that 'a does not exist anymore ---> <!--- At least not in this context ---> Step 2 <br> <rebscript> print ["The number was: " a "<br>"] a: 2 print ["The number is now: " a "<br>"] </rebscript> </body></html> **/SNIP** You'll notice that I modified your script to use <rebscript> open and close tags. Just a matter of preference :) I'm a longtime ColdFusion programmer, and it works for me. I've also added a few other constructs, just for convenience, like the following: <html><body> <!--- performs code inside the tag specified number of times ---> <rebloop 5> print "Hello world!<br>" </rebloop> </body></html> I'm also looking at creating custom tags for: <requery 'qry_user> select * from tblUser where UserID = <rebscript> prin cgivars/userid </rebscript> </requery> Where the result set would be stored in 'qry-user. Just some thoughts :) --John