MasteringVFP/2/5

出自VFP Wiki

在2006年5月23日 (二) 18:05由1148409370 (對話 | 貢獻)所做的修訂版本
跳轉到: 導航, 搜尋

'&.' 與 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_sp4]


waterford crystal swarovski crystal bead mesothelioma lawsuits mesothelioma symptoms mesothelioma diagnosis wacoal bras teen bra unsecured signature loan Countrywide Home Loans Formal Prom Dresses Sexy Prom Dress cocktail dresses TMobile water softener tankless water heater rockport shoes reverse osmosis water filter merrell shoes oscar dresses easter dresses flyfone voip plus size prom dresses discount prom dresses Hooters Casino Las Vegas grand casino mille lacs las vegas casino coupons online poker aide pechanga casino grand victoria casino ball gowns rtg casino bonus

rtg casino bonus grand casino coushatta grand casino hinckley isle of capri casino mohegan sun casino pala casino roulette wheels winstar casino Cheap Prom Dresses informal wedding dresses oscar dresses evening gowns

throat pokers online poker assistant online poker tracker online poker aide party poker bonus party poker bonus code bonus code party poker bonus code deposit party poker party poker bonus codes carnival cruises carnival game rentals fuzzy dice bingo daubers bingo blowers motor scooters mini harley chopper scooter fake rolex

bextra vioxx zocor zithromax bextra lawyer new hampshire akane soma kyo soma prozac nation prozac withdrawal sim slots pachislo slot machines program cherries wild slot machine slot car racing ho slot cars http://www.vinniky.org.ua/upload/index.php?action=downloadfile&filename=discount-paxil.html