Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables not showing
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Variables not showing
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01105864
Message ID:
01105864
Views:
52
I have adjusted a program that I have written and want to pass some of its properties to a different form. I therefore create an empty class, add the properties I want in there an pass this to the next form.

In the next form I check the object and do what I need to do. In code it looks something like this
Form 1
nDataSession = SET('DataSession')
oParameters = CREATEOBJECT('empty')
ADDPROPERTY(oParameters ,  'cLanguage', THISFORM.cbolanguage.Value)
ADDPROPERTY(oParameters ,  'cLayout', THISFORM.cbolayout.Value)

WAIT WINDOW 'Creating oParameters.cLanguage = ' + THISFORM.cbolanguage.Value
WAIT WINDOW 'Creating oParameters.cLayout   = ' + THISFORM.cbolayout.Value

DO FORM msds_subusageexcel WITH nDataSession, oParameters
Init method of the form msds_subusageexcel
PARAMETERS xDataSession, xParameters 
nDataSession = xDataSession 
oParameters = xParameters 
SET DATASESSION TO ndatasession
THISFORM.cLanguage = oParameters.cLanguage
THISFORM.cLayout   = oParameters.cLayout
When doing from the developement environment this works fine. If I compile the program to an exe on test it (on my pc) it still looks fine.

However, when I copy the exe to the Windows 2003 server and test it there it doesn't work.
No matter what I do try to determine the second (!) property is it never returned. The problem is that no error is generated as well. I have created debug lines etc trying to figure out what the second property is but it simply does not work.

To make is even more confusing. I copied the same exe to a Windows 2000 server and there this odd behavior is NOT present. Here it shows what I want it to be doing.

I guess I must be missing the mark here somewhere but having looked at it for over 4 hours I'm dazed and confused.

Any help is appreciated.

Thanks in advance,

Ron Brahma
Next
Reply
Map
View

Click here to load this message in the networking platform