Article View: comp.os.ms-windows.programmer.misc
Article #36VisBasic/Windows 1.0 Bug? Multiparameter subroutines
From: Doug Fields
Date: Wed, 28 Oct 1992 07:06
Date: Wed, 28 Oct 1992 07:06
41 lines
1527 bytes
1527 bytes
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) The functions are entered in w/o any syntax errors. However, when, in the form control functions (e.g. control_click), when I do dim recnum as integer dim rec as rectype and then recnum = (some integer) load_something(recnum, rec) 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? When the function used to be just save_something(byval recno as integer) I didn't used to get these two very wierd errors. What's up?! Cheers, Doug -- Doug Fields fields-doug@yale.edu 203-436-3082 VOICE PP-ASEL doug%admiral.uucp@yale.edu 661-2996 FAX N1NJN fiedoup@yalevm -2873 DATA
Technical Details
Message-ID:
<1cle6jINNk9a@MINERVA.CIS.YALE.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!gumby!yale!not-for-mailShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gumby!yale!not-for-mail From: fields-doug@yale.edu (Doug Fields) Newsgroups: comp.os.ms-windows.programmer.misc,alt.lang.basic Subject: VisBasic/Windows 1.0 Bug? Multiparameter subroutines Date: 28 Oct 1992 02:06:59 -0500 Organization: Yale University, CS, New Haven, CT, Admiral's Account Lines: 41 Distribution: world Message-ID: <1cle6jINNk9a@MINERVA.CIS.YALE.EDU> NNTP-Posting-Host: minerva.cis.yale.edu