Kev suav suav VBA yog dab tsi?
Kev suav suav VBA yog dab tsi?

Video: Kev suav suav VBA yog dab tsi?

Video: Kev suav suav VBA yog dab tsi?
Video: Yog Vim Dab Tsi - Maiv Choj (cover) 2024, Kaum ib hlis
Anonim

VBA chav kawm: suav suav . Raws li Michael Rutten's Hidden Gems Dawb, lub khw muag khoom Visual Basic tsis tu ncua yog suav suav ntawm qhov chaw nco tam sim tom qab nws VTable pointer.

Tib neeg kuj nug, dab tsi yog qhov counter reference?

Hauv computer science, siv suav yog ib qho programming txheej txheem khaws cov naj npawb ntawm cov ntaub ntawv , pointers, los yog handles rau ib qhov chaw, xws li ib yam khoom, ib tug thaiv ntawm nco, disk chaw, thiab lwm yam.

Ib sab saum toj no, tsis muaj dab tsi VBA lub ntsiab lus? Cov Tsis muaj dab tsi lo lus tseem ceeb yog siv los disassociate ib yam khoom sib txawv ntawm ib yam khoom tiag. Siv cov lus teev los muab Tsis muaj dab tsi rau ib qho khoom sib txawv. Piv txwv li: Teeb MyObject = Tsis muaj dab tsi.

Qhov thib ob, qhov kev siv suav suav hauv Python yog dab tsi?

Kev suav suav . Kev suav suav yog ib qho yooj yim txheej txheem uas cov khoom yog deallocated thaum tsis muaj siv rau lawv hauv qhov program. Txhua qhov sib txawv hauv Python yog a siv (tus pointer) rau ib yam khoom thiab tsis yog tus nqi tiag tiag nws tus kheej.

Kuv yuav siv tsis muaj dab tsi hauv VBA li cas?

Tsis muaj dab tsi . Ib yam khoom sib txawv uas tsis tau pib muaj tus nqi ntawm Tsis muaj dab tsi . Koj yuav tsum siv tus neeg khiav dej num los ntsuam xyuas kev sib npaug. Koj ua tsis tau siv ib qho kos npe sib npaug (=) thaum ua haujlwm nrog cov khoom sib txawv, tsuas yog hom ntaub ntawv yooj yim xwb.

Pom zoo: