Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding in prg instead of inside forms ?
Message
From
21/08/2000 07:19:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Coding in prg instead of inside forms ?
Miscellaneous
Thread ID:
00407229
Message ID:
00407229
Views:
63
I have a prg to call a form that will refer the function that find at the end of the prg, the program work fine if form is modal otherwise there is error saying that fun1 or fun1 is not found

How can I fix this problem ?
I have two prg have the same function name fun1, and fun2, how can I have both form/prg run without refer to wrong function ?

can I define class by coding before calling the form and createobject inside the form ?
I want to minimize the coding inside form and put them into prg !!!

i.e.

abc.prg
a = "test"
do form test
return .t.

function fun1
a = '11111'
return .t.

function fun2
b = '22222'
return .t.

xyz.prg
a = 'bbbb'
do form test2
return .t.

function fun1
a = 'aaaa'
return .t.

function fun2
a = 'bbbb'
return .t.
Next
Reply
Map
View

Click here to load this message in the networking platform