FranklinYeung
Programmer
Hi all,
An application was developed in VFP3.0 few years ago and I want to have the setupdisk of the application in VFP6.0 format now, as well as a exe file built from 6.0 version.
I reopened that project by VFP6 + SP5, VFP promoted me whether to preform conversion and of course, I go ahead, after very quick conversion, and no any errors promoted, i rebuild the application, rebuild the exe file and recreate the setupdisk. Everything seems alright and without any problems.
While I copy the program file (from VFP6) to overwrite the exising VFP3 program file in the production workstation, and VFP prompted me again the conversion box, i follow the instruction and seems every alright this time.
However, when i activate some function, I found that the outcome on some function screen is different, The VFP6 exe can't display some fields and leave blank while VFP3 exe works normally. I am sure the fields must have values filled.
I checked with my code and find that the text box control source values is binded with a variable called m.id, m.name, m.trx_dt, etc. Firstly, I suspected the m.xxx variable was released before the screen init, but i am wrong as the variable is still valid. Why the textbox value can't binded again in VFP6.0?
Hence, i perform 2 testes
1) Change my code like this
with thisform.
.id.value = m.id
.name.value = m.name
.trx_dt.value = m.trx_dt
..
..
endwith
2) Declare m.xxx variable in public before
pulic m.id, m.name, m.trx_dt
store ID to m.id
store Name to m.name
store TRX_DT to m.trx_dt
Both works again to show the fields value, but I wonder whether VFP6 can identify the variable named m.xxx and link the controlsource of the textbox to such kind of 'old-standard' variable naming
OR just my 'dirty-write' of the declaration of variable
OR the conversino problem??
Also, Why VFP 3.0 works but VFP 6.0 NOT works for the same routine or logic?? Anything that need to be specially tackled or changed before converting the project 3.0 to 6.0.
As i need to report this to my top-management but i can't find any related and resonable information on web, Please help or share if you encounter such problems before.
Many Many Thanks!!
Franklin

An application was developed in VFP3.0 few years ago and I want to have the setupdisk of the application in VFP6.0 format now, as well as a exe file built from 6.0 version.
I reopened that project by VFP6 + SP5, VFP promoted me whether to preform conversion and of course, I go ahead, after very quick conversion, and no any errors promoted, i rebuild the application, rebuild the exe file and recreate the setupdisk. Everything seems alright and without any problems.
While I copy the program file (from VFP6) to overwrite the exising VFP3 program file in the production workstation, and VFP prompted me again the conversion box, i follow the instruction and seems every alright this time.
However, when i activate some function, I found that the outcome on some function screen is different, The VFP6 exe can't display some fields and leave blank while VFP3 exe works normally. I am sure the fields must have values filled.
I checked with my code and find that the text box control source values is binded with a variable called m.id, m.name, m.trx_dt, etc. Firstly, I suspected the m.xxx variable was released before the screen init, but i am wrong as the variable is still valid. Why the textbox value can't binded again in VFP6.0?
Hence, i perform 2 testes
1) Change my code like this
with thisform.
.id.value = m.id
.name.value = m.name
.trx_dt.value = m.trx_dt
..
..
endwith
2) Declare m.xxx variable in public before
pulic m.id, m.name, m.trx_dt
store ID to m.id
store Name to m.name
store TRX_DT to m.trx_dt
Both works again to show the fields value, but I wonder whether VFP6 can identify the variable named m.xxx and link the controlsource of the textbox to such kind of 'old-standard' variable naming
OR just my 'dirty-write' of the declaration of variable
OR the conversino problem??
Also, Why VFP 3.0 works but VFP 6.0 NOT works for the same routine or logic?? Anything that need to be specially tackled or changed before converting the project 3.0 to 6.0.
As i need to report this to my top-management but i can't find any related and resonable information on web, Please help or share if you encounter such problems before.
Many Many Thanks!!
Franklin