Solved

foxpro check which parameters to pass into form

Posted on 2011-09-08
9
458 Views
Last Modified: 2012-05-12
Hello experts,

Is it possible to know witch parameters i have to pass into a form?
i have a form that receives init parameters but i dont know which parameters to pass..
can i loop trough the form properties to find out?

Thx in advanced..
0
Comment
Question by:justaphase
9 Comments
 
LVL 2

Expert Comment

by:GreatSolutions
Comment Utility
Do you mean what parameter type to pass?
0
 
LVL 27

Expert Comment

by:CaptainCyril
Comment Utility
You can pass a lot of parameters to the form and in the Init of the form you can store these parameters in the properties of the form. You can create new properties in the form as well to store them.
0
 
LVL 41

Expert Comment

by:pcelba
Comment Utility
"i have a form that receives init parameters but i dont know which parameters to pass.."

All parameters should be described in appropriate comments because they can vary on different forms. Do you have source code? If not, then you have to read the Init code line by line and investigate what should be passed.
0
 
LVL 29

Expert Comment

by:Olaf Doschke
Comment Utility
The question doesn't make sense to me. It does not depend on a form or a user defined function accepting parameters. What you need is a documentation of what should be passed to get a wanted result.

And like there is no general way of determining how many and what parameters a function will take, there is no way to know that of a form.

What do you want to achieve? A general code to call a form? A Form handler?

Bye, Olaf.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 41

Expert Comment

by:pcelba
Comment Utility
My previous question "Do you have source code?" should have been  "Do you have commented source code?".

You could maybe attach the Init method code to your next post and we may help with parameters meaning identification.
0
 
LVL 12

Accepted Solution

by:
jrbbldr earned 500 total points
Comment Utility
can i loop trough the form properties to find out?

No

As has been said above each separate VFP form may or may not have parameters passed to it when it is launched.  

Many forms do not work on 'passed' parameters, but instead create what they need as it runs.

Some forms are dependent on 'knowing' what they need to run with by having parameters available to them either as 'passed' parameters or as PUBLIC defined variables (this last approach is not used much any more).

These variations of how a form may operate make it difficult to just 'discover' what is 'passed'.

As you have been asked above - Do you have the source code?
If so, then it can be examined to find the answers.
If not, then you have a large challenge ahead of you.

Good Luck


0
 
LVL 1

Author Comment

by:justaphase
Comment Utility
Hello Experts,

Thank you very much for the quick answers.

I should have explained the all situation.
I'm working on a Management Software that my company bought (made in visual foxpro), and the software gives us the liberty to customize it.
The software house gave us a list of functions to use and allot of other knowledge about the software, but they didn't gave everything like this particularly situation i'm asking about.

Instead of always trying to ask about this stuff to the company, and they don't answer always as we wanted, i try to find out things my self... like I've doing and already discovered cool stuff by my self..

But by the looks of it, measuring by your answers i'm not that lucky with this one xD

So there's nothing i can do right about this reverse engineering?
0
 
LVL 41

Expert Comment

by:pcelba
Comment Utility
Parameters in Init method are optional and their meaning depends on the implementation.

If the vendor cannot help you have two options:
1) Study the code
2) Hire a FoxPro consultant

0
 
LVL 12

Expert Comment

by:jrbbldr
Comment Utility
Instead of always trying to ask about this stuff to the company, and they don't answer always as we wanted, i try to find out things my self... like I've doing and already discovered cool stuff by my self..

Good for you.  
If you have the 'tools' available, that is the way to get to an UNDERSTANDING of how things are working.

the software gives us the liberty to customize it.

Does that mean that you were provided the source code for the whole application?
If so, great.   Then you have what you need to get to that point of UNDERSTANDING.   It might take a while, but you have everything you need (as long as you have your own copy of VFP)

If the vendor only gave you a few 'hooks' to use for customization, then you are left to be subject  to the limited access that they have provided.

Good Luck
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now