Arsip: if pada memo

 
user image
more 12 years ago

nurez

hii all , mw tanya sdikit nechh... klo if memo1.Text = '' then showmessage ('teks kosong..') else... koq ngga bisa? klo di editbox bisa..? mohon penjelasannya :) makasih
user image
more 12 years ago

ImanD

ya klo memang memo-nya ga kosong ya iya lah... cobain ini

Memo1.Clear;
if Memo1.Text = '' then 
  ShowMessage ('teks kosong..') 
else...
user image
more 12 years ago

nurez

hmm ngga bisa nich masz.. :( sharusnya ada showmessage (teks kosong) klo memo-nya ksong, tp ini ngga ada..? gmn yha?klo if memo1.SelText=''then showmessage ('teks kosong..') else INSERT <-- ada messagenya tp klo di klik.. messagenya kluar lgg.. hmm, bukan perintah insert dijalankan..
user image
more 12 years ago

DelphiExpert

pakai:

if Memo1.Lines.Count = 0 then
  ShowMessage('Teks kosong...');
atau:

if Trim(Memo1.Text) = '' then
  ShowMessage('Teks kosong...');
user image
more 12 years ago

nurez

thats what i need... klupaan pakai "trim" .. ngga inget hehehe.... makasih @ kang DE, Imand, n all
more ...
  • Pages:
  • 1
Share to

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com