|
|
|
Глобальная переменная ?
|
|||
|---|---|---|---|
|
#18+
Всем привет! Есть проблемка. я в своей програме организовал собственную систему доступа. Когда пользователь входит он вводит логин и я его запоминаю через глобальную переменную. При запуске форм я проверяю логин в глобальной пременной и определяю права на доступ. Проблема в том что и иногда теряется глобальная переменная? Кто знает какие есть варианты запомнить логин.? Програма под XP на SQL. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.11.2003, 18:28 |
|
||
|
Глобальная переменная ?
|
|||
|---|---|---|---|
|
#18+
извини, а чем тебе таблицы не нравятся? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.11.2003, 18:50 |
|
||
|
Глобальная переменная ?
|
|||
|---|---|---|---|
|
#18+
в реестре в текстовом файле в пользовательском свойстве таблицы MDB в пользовательском свойстве проекта ADP ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.11.2003, 19:08 |
|
||
|
Глобальная переменная ?
|
|||
|---|---|---|---|
|
#18+
Как сохранить в пользовательском свойстве(пример) и как в реестре(пример) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.11.2003, 19:12 |
|
||
|
Глобальная переменная ?
|
|||
|---|---|---|---|
|
#18+
Public Sub setperiod(data As Date) Dim prp As Property CurrentProject.Properties("firstdate") = firstdate(data) CurrentProject.Properties("lastdate") = lastdate(data) 'CurrentProject.Properties.Add "lastdate", data ' так создают End Sub Public Function gfd() 'get first date gfd = CDate(CurrentProject.Properties("firstdate")) End Function Public Function Gld() 'get last date Gld = CDate(CurrentProject.Properties("lastdate")) End Function ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.11.2003, 19:20 |
|
||
|
Глобальная переменная ?
|
|||
|---|---|---|---|
|
#18+
GetSetting Function Returns a key setting value from an application's entry in the Windows registry or (on the Macintosh) information in the application’s initialization file. Syntax GetSetting(appname, section, key[, default]) The GetSetting function syntax has these named arguments: Part Description appname Required. String expression containing the name of the application or project whose key setting is requested. On the Macintosh, this is the filename of the initialization file in the Preferences folder in the System folder. section Required. String expression containing the name of the section where the key setting is found. key Required. String expression containing the name of the key setting to return. default Optional. Expression containing the value to return if no value is set in the key setting. If omitted, default is assumed to be a zero-length string (""). Remarks If any of the items named in the GetSetting arguments do not exist, GetSetting returns the value of default. ----------------------------- SaveSetting Statement Saves or creates an application entry in the application's entry in the Windows registry or (on the Macintosh) information in the application’s initialization file. Syntax SaveSetting appname, section, key, setting The SaveSetting statement syntax has these named arguments: Part Description appname Required. String expression containing the name of the application or project to which the setting applies. On the Macintosh, this is the filename of the initialization file in the Preferences folder in the System folder. section Required. String expression containing the name of the section where the key setting is being saved. key Required. String expression containing the name of the key setting being saved. setting Required. Expression containing the value that key is being set to. Remarks An error occurs if the key setting can’t be saved for any reason. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.11.2003, 19:23 |
|
||
|
Глобальная переменная ?
|
|||
|---|---|---|---|
|
#18+
Спасибо попробую! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.11.2003, 19:28 |
|
||
|
|

start [/forum/topic.php?fid=45&msg=32331924&tid=1678095]: |
0ms |
get settings: |
9ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
44ms |
get topic data: |
12ms |
get forum data: |
4ms |
get page messages: |
47ms |
get tp. blocked users: |
2ms |
| others: | 225ms |
| total: | 365ms |

| 0 / 0 |
