Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinDev Aspects
Message
From
26/01/2013 09:41:36
 
 
To
26/01/2013 06:28:53
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
WinDev
Category:
Other
Title:
Miscellaneous
Thread ID:
01563218
Message ID:
01564235
Views:
111
>>No problem Walter. We all investigate options, look at business needs, existing code-bases, client requirements, etc. and try to choose appropriate future development paths. If people want me to post this stuff then I will. If not then I will drop it, no problem either way :)
>
>I'd like to know two things: what does the code look like, and what is there that isn't working, in terms of porting an app from fox to windev - macros, name expressions, LLFF...?


Macros and named expressions:

WinDev supports this same idea but they call it "indirection" - http://doc.windev.com/en-US/?1512005

Basically you can construct an expression and enclose it in curly braces {} and it gets evaluated at runtime. The nice thing about it is that it can be included on either side of the equals sign and you can access its properties too (if it has any):

Pseudo code:
*  The indirection uses curly braces, a character expression and a second parameter which tells 
*  WinDev what it is, a field name, a variable, a control on a form, etc. This second parameter is 
*  offered to you via IntelliSense so no need to remember them.


*  Example 1:

Var_FileName is string = "my_file"
Var_FieldName is string = "my_field"

SomeOtherVar = { FileName + "." + FieldName , indItem }  &&  Returns the value held in my_file.my_field


*  Example 2:

sVar_Control is string = "BTN_On_My_Form"

{ sVar_Control + "..Caption" , indControl }  = "Hello"   && changes the caption of the button
.


Low Level File Functions - LLFF:

Fully supported and uses very similar function names e.g.

FOpen()
FClose()
FDelete()
FRead()
FReadLine()

and much more. See here for the full list of external file functions: http://doc.windev.com/en-US/?3036034



Whats not supported:

I don't know because I don't know all there is about VFP and I don't know all there is about WinDev.

So far, after converting 4 smallish projects and working on a fifth I have not found something I cannot do. Usually I can use almost identical logic and program flow, sometimes even the same function names or very similar. Often in fewer lines of code because WinDev is handling a lot of things now automatically. I have parsed a lot of the on-line manuals and can see many, many functions which I believe will enable me to do everything I have ever done in VFP and more. I do not know of any obvious gaps, at least not in the type of software we develop.



Code Sample:

I have some screencaps ready to load for you but I need Michel to allow for larger image files (up to 1Mb) to be loaded otherwise I cannot load them. I have sent him a request.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform