Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read parameters needed by _screen.activeform
Message
From
30/11/2016 11:36:07
 
 
To
30/11/2016 04:26:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01644104
Message ID:
01644143
Views:
61
>>>>Good afternoon! I have this problem, I'm calling a form that I cannot see on development mode, so I use the createobject("predefinedform") and change some of the properties, but, the form in the init event is expecting some parameters in specific order with specific values. Is there a way to see what are the parameters expected? Please remember I cannot see the code, the predefinedform is compiled inside the exe.
>>>>Thanks in advance,.
>>>
>>>Have the debugger open while you instantiate the form, and a breakpoint on atc(".init", program()). Then watch for the new variables which appear and have a value of what you sent it. Now to send the parameters, you can createobject("predefinedform", "#1", "#2", "#3", "#4") etc - first trying to guess the number of parameters (see how many of variables in the debugger have the values you assigned - if "#4" is not there, it takes only three parameters. Then try to vary the types of parameters, one by one. Try to guess the type from the parameter names.
>>>
>>>It may take you dozens of attempts, but then you'll know more than you know now.
>>
>>Good approach Dragan! I did never think about it, you can't see the code (blank Window in debugger), but you can see the new variables created by the LPARAMETERS!
>>
>>Really creative :)
>
>I had to be creative many times, when I got black box pieces like that and had to work around them... Debugger is one of my favorite can openers. The other one is, once you know the name of a variable holding >an object reference, to type in command window the name of that variable and a dot, and enjoy the benefits of intellisense...

Thank you, but I'm missing something, this is the scenario: a third party have a vfp application "contab.exe" I'm allowed to add .scx forms to grow the program, there are menu options in sql tables that can be used to call the new forms. In these new forms I can call existing forms for using some "internal methods" created by third party, like createform("presups") this command open the compiled form and I can use the buttons, add field and so on by programmatic code. I tried to open the program contab.exe from vfp but its not possible, I tried to call debug from my form but it's not allowed so I cannot check using debug. If i call ccode=object.readmethod("init") on any of my created forms I can have the complete code but doing the same in the contab.exe forms i just have: "init" Can you understand what I mean?
John Harold Belalcázar Lozano
Associate Director Of Development
http://www.belvicto.co/
jhbelalc@gmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform