🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #7

Re: VisBasic/Windows 1.0 Bug? Multiparameter subroutines

#7
From: Galen Raben
Date: Wed, 28 Oct 1992 23:43
24 lines
1309 bytes
In alt.lang.basic, fields-doug@yale.edu (Doug Fields) writes:

>I am writing a program which uses these two routines in the (global)
>section of the Form:

>sub load_something(byval recno as integer, record as rectype)
>sub save_something(byval recno as integer, byval record as rectype)
[ stuff deleted...]

>It gives me an error "Expected: ="
>so I type the line as
>load_something(recnum, rec) = 1
>and it stops with the "Expected: =" error, but instead gives me the
>error "Undefined array: load_something."

>I'm totally lost. HELP please! What am I doing wrong?
[ stuff deleted...]

From what is here (as I read it) it rectype is undefined, also you used
record as a parameter in both subs - record is a reserved word, try naming
it something else...

Hope this helps...
- Galen -
Technical Details
Message-ID: <33680005@hpgrla.gr.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sdd.hp.com!scd.hp.com!hpscdm!hplextra!hpfcso!hpgrla!galenr
References: <1cle6jINNk9a@MINERVA.CIS.YALE.EDU>

Show Full Headers
Complete Article Headers
From: galenr@hpgrla.gr.hp.com (Galen Raben)
Date: Wed, 28 Oct 1992 23:43:00 GMT
Subject: Re: VisBasic/Windows 1.0 Bug? Multiparameter subroutines
Message-ID: <33680005@hpgrla.gr.hp.com>
Organization: Hewlett-Packard, Greeley, CO
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sdd.hp.com!scd.hp.com!hpscdm!hplextra!hpfcso!hpgrla!galenr
Newsgroups: alt.lang.basic
References: <1cle6jINNk9a@MINERVA.CIS.YALE.EDU>
Lines: 24