Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 22nd, 2007, 08:28 PM
Registered User
 
Join Date: Jan 2007
Location: , , Philippines.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default why my variable is empty?

i have declared a string named "stat" and it carries the btn_in caption if the btn_in button is selected or btn_out caption if the btn_out button is selected. but when i run the program, my variable stat is empty...

  #2 (permalink)  
Old February 23rd, 2007, 07:52 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hello...

are you filling that variable??

can you show us some code???

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
  #3 (permalink)  
Old March 19th, 2007, 04:08 PM
Registered User
 
Join Date: Mar 2007
Location: Cincinnati, Ohio, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Define your variable in the General Definitions to be global through out the module.
Or add a .BAS module and use Global to define the variable which will be visible through out the entire program


Best wishes,
BW


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASSIGNING A JAVA SCRIPT VARIABLE TO A XSL VARIABLE SOMANATHAN10 XSLT 1 February 21st, 2007 04:26 AM
best way to check for variable being empty crmpicco Classic ASP Basics 3 March 28th, 2006 12:11 PM
Object variable or With block variable not set tparrish VS.NET 2002/2003 3 May 22nd, 2005 07:40 AM
declare empty variable jtyson General .NET 2 April 8th, 2004 11:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.