Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5 command equivalent to 'IF myprocedure ()'
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00030393
Message ID:
00030880
Views:
32
>>>After upgrading from VFP 3.0b to VFP 5.0, one of the commands in a PRG is flagging an error during Build Project and is not producing the results it was in 3.0b.
>>>
>>>The statement used to call a procedure called 'SAVE' and
>>>return .T. if completed successfully. The procedure 'SAVE' was ended with 'RETURN .T.'
>>>Now the procedure doesn't even run and I can't find a VFP 5 statement that is equivalent to:
>>>
>>>
>>>if save()
>>> clear read
>>>else
>>> lbutton=1
>>>endif
>>>
>>>It seems pretty simple, but none of my attempts have produced the same results.
>>>
>>>If anyone knows of a similar command or syntax that will work in VFP 5, I would be extremely grateful.
>>>
>>>Thanks,
>>>
>>>Steve
>>
>>
>>Change the name of Save to something like SaveRec....
>>
>>Just another question....why are you using CLEAR READ??? You only need one READ EVENTS in VFP.
>>
>>Craig
>
>Also, check to see if your SAVE program is a FUNCTION (requires a return value) or a PROCEDURE (no return value). VFP5 may be fussier than VFP3 about this.
>
>Barbara


Actually, a function does not require a return value. If your called the procedure/function as a funtion, and you do not specify a return value, a .T. is automatically returned.

Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform