Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate Function
Message
From
16/12/2008 06:41:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01367769
Message ID:
01367777
Views:
8
OK
If I have big project and I want to add the ctl32 etc with classes\prg etc Its can make problem on this aspect or any other?

>>Hi all
>>I heard abaout 'You can do with vfp what ever you want!'.
>>
>>This means that you can include same function twice?
>>
>>Please look on the following code:
>>
test1()
>>function test1
>>	a='First'
>>	messagebox(a)
>>endfunc
>>function test1
>>	a='Second'
>>	messagebox(a)
>>endfunc
>> You will get messagebox 'Second'.
>>
>>You will get 'Second'. also if you will add 'Set procedure to .. additive.
>>
>>For Example
>>
*prog1
>>Set procedure to prog2  additive
>>test1()
>>function test1
>>	a='First'
>>	messagebox(a)
>>endfunc
>>function test1
>>	a='Second'
>>	messagebox(a)
>>endfunc
>>
>>*prog2.prg
>>function test1
>>	a='Other'
>>	messagebox(a)
>>endfunc
>>
>>So, if vfp can do every thing, can I say to my dear fox to void duplicate function name?
>>Help please
>
>As far as I know, there is no build-in check, as it would be in VS. In VFP it's your responsibility to always create unique names.
Thank you
Chaim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform