Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 28th, 2006, 4:43 PM   #1
hush
Programmer
 
hush's Avatar
 
Join Date: Feb 2006
Location: 127.0.0.1
Posts: 35
Rep Power: 0 hush is on a distinguished road
strange phenomenon

I got some working code but there seems to be a strange phenomenon.

I got 2 forms that I want to pass data back and forth to.

In this example I am passing the data in 3 text boxes on form2 to form1. So I created 3 new properties in form1 and then use(I’m using generic names for simplicity):

Form1.passedtext = textbox1.text 
Form1.passedtext2 = textbox2.text
Form1.passedtext3 = textbox3.text

And to test it works I then put a
msgbox(me.passedtext)
in a button event procedure on form1.

Now here the strange bit-
If I enter text in all 3 text boxes on form 2 then it works fine but if I leave one of them blank then the message box seems to be empty.

What is that all about?

And why can’t I use public variable to move data across?

hush
hush is offline   Reply With Quote
Old Sep 8th, 2006, 1:07 AM   #2
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 237
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
are these both childforms? or is form1 the parent form?
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behavior: getting different results from the same input on a function. WTH? pulpfiction C 1 Mar 28th, 2006 11:43 PM
Strange, but true! frankish C++ 9 Oct 26th, 2005 9:04 PM
Some-thing strange about MP3 Players/Recorders !!! on_auc Coder's Corner Lounge 3 May 4th, 2005 10:50 AM
Strange Fraction Thing gamehack C++ 2 Mar 6th, 2005 6:19 PM
C program strange error ar1 C++ 1 Feb 9th, 2005 1:14 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC