Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a parameter
Message
 
 
À
04/10/2001 17:46:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00564509
Message ID:
00564585
Vues:
16
>>>Well, that is exactly what I did, but I am not happy with referencing a variable back to a textbox value on the form that calls the report, that's all.
>
>>Why do you need to reference it back?
>
>OK, let me rephrase that: I don't like the idea of using myForm.myTextbox.myValue for the variable being used to select records in the DE of a report. There has got to be a better way.

Sorry, Winn, I went home and didn't see your message till now. Seems like Steve already answered your question and basically it's exactly what I meant and this is technique, I use.

Also you have to create a local variable
lcMyVal=thisform.textbox1.value
select * from mytable where myCode=m.lcmyVal into cursor curReport
if _tally>0
    report form myReport to printer noconsole
else
    =messagebox('No records!',48,'No records...')
endif
use in CurReport
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform