Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View not accepting values.
Message
 
À
21/02/2002 18:05:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00623467
Message ID:
00623477
Vues:
10
>Nick,
>
>Assuming those fields are updateable (and assuming you are inside a WITH/ENDWITH block)...
>
>
replace loc_long with .lc in lv_prcrec
>
>or...
>
>
>select lv_prcrec
>replace loc_long with .lc
>replace div_long with .ld
>replace unit_long with .lu
>
>
>The following is unreliable...it won't work if the wrong work area is selected:
>
replace lv_prcrec.loc_long with .lc  && don't do this!
>
>
>>I have a view in my form dataenviromnent by the name of lv_prcrec. I am not displaying the fields loc_long, div_long and unit_long on the form, but I would like to set its value as listed below. When I set the values, get a message saying "object LV_PRCREC is not found". Is there an alternative way to set my values to fields in a cursor, before issuing sendupdate.
>>
>>
>>lv_prcrec.loc_long = .lc
>>lv_prcrec.div_long = .ld
>>lv_prcrec.unit_long = .lu
>>.recalc_benefit
>>.refresh()
>>r1 = cursorsetprop('sendupdates',.t.,'lv_prcrec')
>>
>>
>>Thank
>>Nick Patel

Thanks for answering back, this works like a charm. It seem the replace updates my cursor without me issuing cursorsetprop('sendupdates',.t.,'lv_prcrec'). Which is fine, but I was wonder is there a way to hold those values in the lv_prcrec and then if my user doesn't want to update, I can set the values back to orignal state?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform