🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.controls
Article #29

Re: Need some VB help!!!

#29
From: broken
Date: Fri, 12 Apr 2002 23:26
33 lines
3320 bytes
"VB_beginner" <nospam@thegalvins.net> wrote in message
news:ub1loeohidsn29@corp.supernews.com...
> I am just learning VB 6, and I need a little help here and there. For a
> homework project, i am working on a stock analysis program. I am in the
> early stages of it, and I just need to be able to have one form verify the
> last date in a list box on another form.
> Let me try to clarify a little:
>
> 1. frmDataEntry has a list box for the record number, and text boxes for
> date and stock price. When the user clicks cmdAdd, the data needs to
> collectively pass to frmDataList.lstData.
>
> 2. Once there is existing data in frmDataList.lstData, I need frmDataEntry
> to check for dates in frmDataList.lstData.
>
> I am so new to this, that even the most simple mechanics are hard. Someone
> please help.
>
> VB_newbie
>
>

you'll need to add a code module where you declare global variables. to do
that, go to "project" on the menu bar, and choose "add module". a code
window will open, and it will add itself to the project window in a module
folder (which doesn't really exist if you look for it through windows
explorer). inside the module, declare variables as shown below.

public <var_name> as <data_type>

these variables will be accessible to any form in the project. so, before
you unload frmDataEntry, you'll need to assign values to the global
variables based on the user's input.
Technical Details
Message-ID: <3cb7709d_2@news1.prserv.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!newsfeed2.us.prserv.net!prserv.net!news1.prserv.net!32.100.204.36
References: <ub1loeohidsn29@corp.supernews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 110a07,df069f5ede632f8
X-Google-Attributes: gid110a07,public
X-Google-Thread: 1124cf,df069f5ede632f8
X-Google-Attributes: gid1124cf,public
X-Google-Thread: 112bf7,df069f5ede632f8
X-Google-Attributes: gid112bf7,public
X-Google-Thread: 108717,df069f5ede632f8
X-Google-Attributes: gid108717,public
X-Google-Thread: f788c,df069f5ede632f8
X-Google-Attributes: gidf788c,public
X-Google-Thread: 100dc5,df069f5ede632f8
X-Google-Attributes: gid100dc5,public
X-Google-Thread: f7033,df069f5ede632f8
X-Google-Attributes: gidf7033,public
X-Google-Thread: 105df1,df069f5ede632f8
X-Google-Attributes: gid105df1,public
X-Google-ArrivalTime: 2002-04-12 16:26:41 PST
Reply-To: "broken" <number137734@REMOVECAPShotmail.com>
From: "broken" <number137734@REMOVECAPShotmail.com>
Newsgroups: comp.os.ms-windows.programmer.controls,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.winhelp,comp.programming,de.comp.os.ms-windows.programmer,fj.comp.programming,fj.net.programming,fj.os.ms-windows.programming
References: <ub1loeohidsn29@corp.supernews.com>
Subject: Re: Need some VB help!!!
Date: Fri, 12 Apr 2002 18:26:29 -0500
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 32.100.204.36
Message-ID: <3cb7709d_2@news1.prserv.net>
X-Trace: 12 Apr 2002 23:41:17 GMT, 32.100.204.36
Organization: Global Network Services - Remote Access Mail & News Services
X-Complaints-To: abuse@prserv.net
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!newsfeed2.us.prserv.net!prserv.net!news1.prserv.net!32.100.204.36