Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 12th, 2003, 05:29 PM
Zuuker Zuuker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Southern IL,USA
Posts: 6 Zuuker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Text Box Fiasco!

The below code Highlites Line 1 in the sub Program and say "UnDeclared Variable".It is the correct Form & the TextBox's are numbered correctly. WHY?

Code In Module1:
Type Config
A as String * 18
B as String * 24
C as String * 24
end Type

Public Cnf(1 to 6) as Config

Public Item
Public Regg

Code in Form:
Sub Form_Load
Load Form2
UnLoad Form1
If Item = 1 then
Call PrntCnf
End if
Form2 Show
Sub PrntCnf()
Text1.Text = Cnf(Regg).A
Text2.Text = Cnf(Regg).B
Text3.Text = Cnf(Regg).C
End sub


Reply With Quote
  #2  
Old November 13th, 2003, 12:49 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
Maybe u don't declare two variable type!..
Plz modify two statement:
Public Item
Public Regg
To:
Public Item as integer
Public Regg as integer

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Text Box Fiasco!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway