ADO CopyTo နည်းလမ်း
❮ Stream Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။
CopyTo နည်းလမ်းကို ဖွင့်ထားသော Stream အရာဝတ္ထုမှ သတ်မှတ်ထားသော စာလုံးအရေအတွက် သို့မဟုတ် ဘိုက်များကို ကူးယူရန် အသုံးပြုပါသည်။
Stream အရာဝတ္ထုနှစ်ခု၏ အမျိုးအစားသည် တူညီသင့်သည်။ သို့သော်၊ စာသား Stream အရာဝတ္ထုများကို binary Stream အရာဝတ္ထုများအဖြစ်သို့ ကူးယူနိုင်သော်လည်း အပြန်အလှန်မဟုတ်ဘဲ၊ ဦးတည်ရာ Stream အရာဝတ္ထု၏ CharSet ပိုင်ဆိုင်မှုသည် အရင်းအမြစ် Stream အရာဝတ္ထုထက် ကွဲပြားနိုင်ပါသည်။
အထားအသို
objStream.CopyTo dest,numchars
Parameter | Description |
---|---|
dest | Required. Where to copy the Stream (contains a reference to an open Stream object) |
numchars | Optional. An integer that specifies the number of characters
or bytes to be copied from the current position in the source Stream to
the destination Stream. Default is -1 (will copy all data from the current position to
EOS)
Note: If the specified number is greater than the available number of bytes/characters until EOS, then only bytes/characters from the current position to EOS are copied |
❮ Stream Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။