Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you add a mem var to a fld value?
Message
De
11/06/1999 10:25:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00228063
Message ID:
00228763
Vues:
15
>Don't berate yourself to much Robert, we've all been there. We all suffer at some point, what some of us like to call, cerebrul flatulence, better known as brain farts. :-)
>
>Cheers
>
>>>Sounds like myvar isn't numeric. Try issuing myvar=0 or STORE 0 TO myvar before the code in the detail area.
>>>
>>>>I am trying to add the values in a number fld in details record
>>>>to a mem var and come up with a total for all the detail records.
>>>>myfld is the value in the fld and has a data type of num 7.1...
>>>>and myvar is - int to myvar = 0 ...
>>>>The code I am using in the detail area is...
>>>>myvar = myvar + myfld..
>>>>The error message I am getting is - OPERATOR/OPERAND TYPE MISMATCH..
>>>>Does anybody have any idea? ... thanks
>>-----
>>hi Colin,
>>I feel like a dummy. My code looked like this..
>>myvar=myvar=+myfld...
>>Can you believe I did not even see the equal sign even though
>>I looked at it for a long time.. I must have been really
>>brain dead this morning...
>>thanks anyway... :)
------
thanks Colin.... that cheers me up a lot... :)))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform