Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion E-Basic problems
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David McFarlane  
View profile  
 More options Feb 20 2009, 11:03 am
From: David McFarlane <mcfar...@msu.edu>
Date: Fri, 20 Feb 2009 11:03:42 -0500
Local: Fri, Feb 20 2009 11:03 am
Subject: Re: E-Basic problems
Following up after an off-list exchange with Amy...

>I was looking at the random number generator, the Random
>(function).  It was getting an error at the Sub Main()

Aha, that's it.  Most likely you innocently pasted that entire
example script into an inline script object.  That will not work at
all, as you cannot define a Sub in inline script (since that is
already executing from withing a Sub), you must define Subs and
Functions in the global User Area, as described in the Using E-Basic
chapter of the User's Guide.

Furthermore, that example is really meant for version 1.x.  Back in
version 1.x you could edit the raw source code as text directly in
E-Run; version 2 took that away from us.  Anyway, you would open a
blank E-Run window, then copy and paste the complete Random() example
into E-Run, and run that.  Just to make sure, I tried this myself
and... what do you know, the Random() example has an error in
it!  They forgot to define their variables, you need to add a "Dim x,
y, message" or the like in there, then it works.  Bad E-Prime example
writers!  They really need to proofread and test what they write
before foisting it off on innocent users!  I will report this error
to PST in case they want to fix it in future documentation.

-- David McFarlane, Professional Faultfinder


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.