1. Scripting with Euphoria

Not to be confused with "euphoria to Java"

Euphoria in the "scripting" environment.
Problem:  Working with HTML in a WIN and DOS application.
I have looked "briefly" at;

1. HTML code
2. JavaScript/JScript
3.VBScript
4. WScript
5. CScript
6. PerlScript

There are an number of statements that work in more than one
scripting language and many more that only need "minor" adjustment.
At first this was very fustrating, but it does get easier...

To learn about VBScripting I went to JAVA's site and to learn about
javaScripting I went to Microsoft's  site.. hmm kinda backwards..

It seems each scripting form has its own area of function or control.
I am not sure if this is by design or accident ...

Within the HTML JavaScript is supreme and is the default script.
it has C++ and JAVA like structures, and can "port" some of the
C/C++ and Java code.  JavaScript basically "extends" the HTML
language, but its scope seems  confined to the "browser" .
It can create certain "types" of new objects(very limited)

VBScript gives you contol over OBJECTS especially the ActiveX
 components which are very cool. The access from HTML to
local machine text files is easily done using activeX file objects
but in a very secure manner...( I don't want scriptors accessing MY
hardDrive). I am feel safe that using the activeX file object is "safe"
VBScript can create many "types" of new Classes andObjects.
(most of this  I don't understand)
.
WScript and CScript are kinda like ex and exw in Euphoria , one
for DOS and one for Windows... I perfer DOS32 and look forward
to writting some DOS32/CScript procedures. Since 99% of CScript
will run in WScript that could be one way to  "port" DOS32 to HTML.

PerlScript I don't care for but to others it may be the magic
glue for handling DataBases over the WEB.  If  I had to incorporate
 several  "dissimilar" databases of  different types and
sources,  I might get very serious about learning PerlScript...

For no reason at all, here is a short javaScript with Wscript
output..
                          D=Math.random()*10 ;
                          D=Math.floor(D);
                           if(D<5){ WScript.Echo("Number is Less") ;  }
                           else   { WScript.Echo( "Number is MORE.") ; };

It took me a whole day to figure this out...

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu