AccessTr.neT
CurrentProject.Path kullanımı - Baskı Önizleme

+- AccessTr.neT (https://accesstr.net)
+-- Forum: Microsoft Access (https://accesstr.net/forum-microsoft-access.html)
+--- Forum: Access Cevaplanmış Soruları (https://accesstr.net/forum-access-cevaplanmis-sorulari.html)
+--- Konu Başlığı: CurrentProject.Path kullanımı (/konu-currentproject-path-kullanimi.html)



CurrentProject.Path kullanımı - accessman - 05/01/2010

iyi günler arkadaşlar
PlaySound ("C:\Users\hamal\Documents\accessman\camsesi1.wav")
komutu ile adresini verdiğimiz wav dosyasını çalıştırıyoruz
bunu programın bulunduğu klasördeki "camsesi1.wav" dosyasını çalıştıracak şekilde nasıl değiştirmemiz lazım
muhtemelen "CurrentProject.Path" bununla olacak ama ben düzenleyemedim
yardımlarınız için teşekkürler


Cvp: CurrentProject.Path kullanımı - mehmetdemiral - 05/01/2010

Kod:
dim ses as string
ses = CurrentProject.Path & "\" & "camsesi.wav"
Play ses

böyle dener misiniz?


Cvp: CurrentProject.Path kullanımı - accessman - 05/01/2010

teşekkürler sn.mehmetdemiral


Cvp: CurrentProject.Path kullanımı - mehmetdemiral - 05/01/2010

tabii "play ses" değil "playsound ses" olacağını anlamışsınızdır. Ben yanlış yazmışım..


Cvp: CurrentProject.Path kullanımı - mehmetdemiral - 05/01/2010

Bu arada değişken tanımlamak istemezseniz direkt olarak
PlaySound CurrentProject.Path & "\" & "camsesi.wav"
biçiminde de kullanabilirsiniz. Ama birden çok ses kullanırsınız diye ben "ses" şeklinde olayı daha kolay kullanılabilir yapmak istedim. Böylece playsound ses1 , playsound ses2 şeklinde kullanabilirsiniz.

Kolay gelsin.


Cvp: CurrentProject.Path kullanımı - accessman - 05/01/2010

evet mehmey bey bende
PlaySound CurrentProject.Path & "\" & "camsesi.wav"
şeklinde kullandım
teşekkürler