Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids, p-views and Thuesdays
Message
 
À
10/11/1998 10:24:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156130
Message ID:
00156137
Vues:
32
Hi John,
Variables are locals. The program deals with financial calculations: in the specific case it calculates monthly leasing payments based on a few input variables.

>>Where are these variables coming from that you're trying to do a REPLACE >>with? Could this be a scope issue? I don't believe that what you can update >>in the view has anything to do with what is actually displayed.

>I have a grid based on a p-view. For simplicity let's say that the grid has 3 columns and that the view has some 30 columns. If I append a record to the view I can only replace fields that are also contained in the grid, otherwise I get an "Unonwn variable xxx" ie
>
>*The following code works:
> select view
> append blank
> replace fld1 with val1,;
> fld2 with val2,;
> fld3 with val3
>* so far so good but if I add a line like:
> replace fld4 with val4
>*I get an error message like "Unknown variable val4 in..."
>
>* If I use the following code all goes well:
> append blank
> scatter memo name recobj
> with recobj
> .fld1 = val1
> .fld2 = val2
> ...
> .fld30 = val30
> endwith
> gather memo name recobj
>
>As the above code solves the problem, mine is just a curiosity: why one snippet works and the other does not? Any feature by design I don't know about? Or is it a confirmation that thuesdays are not my day and that I run out of luck on mondays?
>
>TIA
*******************************
John S. Koziol
"In theory, there is no difference between theory and practice. But, in practice, there is. "
--- Jan L.A. van de Snepscheut

Map - See the entire thread - Previous - Next - Reply
Save to folder
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform