الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كيف ممكن اخزن التغيرات في البرنامج؟

مغلق
بدأه Broken_Heart في 6 مارس 2004 · 4 رد · 621 مشاهدة · في لغة Ms Visual Basic 6 وما قبلها من إصدارات
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ...

عندي سؤال .. كيف ممكن نخزن اي تغيير في البرنامج بحيث يحافظ على التغيرات

بعد تشغيله مرة ثانيه ؟؟؟ ممكن مثال ؟؟؟

وشكراً جزيلاً

#2

ممكن أخي توضح أكثر؟

PMI_Logo_1.jpg

مدير مشاريع محترف - PMP
محلل أنظمة معتمد
مدير فريق برمجة تطبيقات ويب .Net

======|||||=====

======@ @====
==o0o== ( ) ==o0o===
================
كل منا يحتاج إلى الإرادة حتى يستطيع أن يقوم بعمله

#3
If txtPassword.text <> "" then
SaveSetting app.exename, "Maverick:","MyPassword",txtPassword.text
end if

Private sub Form_Load()
Dim Pass as string
Pass = GetSetting (app.EXEName,"Maverick","MyPassword")

راكان الحنيطي

Be Open Source

opensource-550x4752.gif

#4

بصراحة أخوي ما فهمت شي من الكود

ممكن تشرحة ولو بشكل سريع

#5
اقتباس
SaveSetting:

This function allows you to save your program's changes at run-time.

Syntax of the function :

SaveSettin(appname as string, Section as string, Key as string, Setting as string)

appname is your program's name. you can specify the name of your application by taking it from app class

App.EXEName

Section is the name of the section in registry where you want to put the setting

eg: "MyProgram"

KeyName is the registry keyname which you will use to save the value of the setting in

eg: "Password"

Setting is the value of the control you want to save

maybe a password of a username

eg "Maverick"

اقتباس
You can use GetSetting the same way where you pass the appname , section and the setting name and it will give you the value

but there is an extra param to pass the get setting function which is called "Default"

Ignore that one

تم تعديل هذه المشاركة بواسطة Maverick في 17 مارس 2004 في 16:53

راكان الحنيطي

Be Open Source

opensource-550x4752.gif

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…