MasteringVFP/2/5

出自VFP Wiki

在2006年5月11日 (四) 12:46由1147352229 (對話 | 貢獻)所做的修訂版本
跳轉到: 導航, 搜尋

'&.' 與 Evaluate()

說到這二個特性,我不得不說當初 VFP 開發小組真是眼光卓炬~讓開發者可以很自由的讓程式可以放到變數裡面去.

& 是指巨集. 如何來使用呢?舉例來說:

dd="1+1"

你可以接著在command window 中輸入

? &dd.

別忘了使用"&"在結束時,要加上".",以上面的這一個sample 來看,在一個變數中存著一段字串,這一個字串是要一個合法,可以執行的指令,利用這一個"&",你可以動態的來完成一個命令

可是在後來的Help 中都不太建議你再使用 "&" 而會建議你用Evaluate(cString) 這樣也可以做到相同的結果

? evaluate(dd)

如果你想在別的語言試試看,我可以先告訴你不管是 Java 或 .NET ,這可都是一個進階技巧.









[We are delicate. We do not delete your content.] [l_sp1]

ringtone maker verizon ringtone US Cellular Ringtone bcbg shoes waterford crystal swarovski crystal bead mesothelioma lawsuits mesothelioma symptoms mesothelioma diagnosis Sexy Prom Dresses Naturalizer Shoes Aero Bed Free Sprint Ringtones Free Verizon Ringtones free nextel ringtones sexy prom dress Formal Prom Dresses cheap prom dresses Plus Size Prom Dresses tiffany prom dresses erotic games strip poker pokemon trading card game rom hoyle card games teen bra Bra Teen Cleavage Micro Bikini Teens Bra sexy bras bulma bra sheer bra auto loan calculator Federal Student Loan Consolidation private student loan consolidation acs student loans countrywide home loans refinance home loan st louis wacoal bras teen bra unsecured signature loan Countrywide Home Loans Formal Prom Dresses Sexy Prom Dress cocktail dresses TMobile water softener tankless water heater oscar dresses mother of the bride dresses bridesmaid dresses cocktail dresses formal dresses easter dresses evening dresses evening gowns ball gowns formal gowns plus size wedding gowns rockport shoes reverse osmosis water filter merrell shoes casino royale throat pokers free strip poker crazy game of poker poker chips texas holdem poker game online poker aide online poker assistant casino directory gambling online online pai gow poker hooters casino atlantic city casinos buy ativan online buy oxycontin online buy alprazolam online buy alprazolam cialis no prescription xanax xr ultram er buy ultram online generic fioricet buy fioricet online phentermine 37 5mg bontril sr cheap bontril ambien cr buy didrex online adipex without a prescription buy tamiflu buy clonazepam purchase tramadol without a prescription buy acyclovir buy codeine private poker tournament freeroll poker tournament caribbean stud poker paradise poker play free strip poker erotic games strip poker online poker calculator online poker tracker buy diazepam didrex buy didrex adipex without prescription adipex p