Là một dự án mã nguồn mở, StevenBlack/envLib đã đạt 15 sao trên GitHub, ngôn ngữ xBase. Tom Rettig's Envlib library for Visual FoxPro, first released in 1995, is modernized and carried-forward.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
EnvLib is a collection of classes that you can use (and aggregate) to save and restore your environment. The classes save, set, and restore SET, ON, open table, system variable, object properties, and other helpers.
The original version of EnvLib for Visual FoxPro was created by Tom Rettig in July 1995. Tom passed away in February 1996. Since then Visual FoxPro has moved forward significantly. This is an updated version of his original library.
Features
Over 120 lightweight classes, one for each aspect of the Visual FoxPro environment.
Objects save, and optionally set, aspects of the VFP environment upon init().
Objects restore their aspect of the VFP environment upon destroy().
Therefore facets of the VFP environment are automatically reset when objects go out of scope.
Objects can be nested at design-time or run-time to group many aspects into one object.
Objects can be configured at creation-time to not reset upon destroy().
Using EnvLib
To include Envlib in your application, simply call SET PROCEDURE ... ADDITIVE prior to using it.
SET PROCEDURE TO <path>\EnvLib ADDITIVE
Example -- saving the current path
In standard Visual FoxPro, saving and setting SET PATH looks something like this:
LOCAL lcAPath
lcPath= SET( "path" )
SET PATH TO newPath && or SET PATH TO newPath ADDITIVE
* Lots of code here
* Now restore the previously selected work area
SET PATH TO &lcPath && Do this everywhere you might exit
RETURN
With Envlib, you do this:
LOCAL loAlias
loAlias= CREATEOBJECT( "SetPath", "newPath" )
* or loAlias= CREATEOBJECT( "SetPath", "newPath", "Additive" )
* Lots of code here
RETURN
Note you don't need to cover every exit point because when lcPath goes out of lexical scope, SET PATH is reset upon its destroy.
Example -- saving the current work area
In standard Visual FoxPro, saving the current work area looks something like this:
LOCAL lcAlias
lcAlias= SELECT()
* Lots of code here
* Now restore the previously selected work area
SELECT ( lcAlias ) && Do this everywhere you might exit
RETURN
With Envlib, you do this:
LOCAL loAlias
loAlias= CREATEOBJECT( "SaveSelect" )
* Lots of code here
RETURN
Note you don't need to cover every exit point because when loAlias goes out of lexical scope, the work area is reset upon its destroy.
Example -- saving the current work area and setting a new work area
LOCAL lcAlias
lcAlias= SELECT()
SELECT Customer
* Lots of code here
* Now restore the previously selected work area
SELECT ( lcAlias ) && Do this everywhere you might exit
RETURN
With Envlib, you do this:
LOCAL loAlias
loAlias= CREATEOBJECT( "SetSelect". "Customer" )
* Lots of code here
RETURN
Classes in EnvLib
Abstract Classes
Class
Parent
Notes
Set
Custom
Abstract class
SetTwo
Set
Abstract class
SetOnOff
Set
Abstract class
SetOnOffTwo
SetTwo
Abstract class
On
Custom
Abstract class
SaveArea
Custom
Abstract class
SaveUsedArea
SaveArea
Abstract class
SET Classes
These classes save, set, and restore the various VFP SET commands that have corresponding SET() functions.
Class
Parent
SetAlternate
SetOnOffTwo
SetAnsi
SetOnOff
SetAsserts
SetOnOff
SetAutoIncError
SetOnOff
SetAutosave
SetOnOff
SetBell
SetOnOff
SetBlocksize
Set
SetBrstatus
SetOnOff
SetCarry
SetOnOff
SetCentury
SetOnOff
SetClassLib
Set
SetClear
SetOnOff
SetClock
SetOnOff
SetCollate
Set
SetCoverage
Set
SetColor
Set
SetCompatible
SetOnOffTwo
SetConfirm
SetOnOff
SetConsole
SetOnOff
SetCpcompile
Set
SetCpdialog
SetOnOff
SetCurrency
SetTwo
SetCursor
SetOnOff
SetDatabase
Set
SetDataSession
Set
SetDate
Set
SetDebug
SetOnOff
SetDecimals
Set
SetDefault
Set
SetDeleted
SetOnOff
SetDelimiters
SetOnOffTwo
SetDevelopment
SetOnOff
SetDisplay
Set
SetDohistory
SetOnOff
SetEcho
SetOnOff
SetEngineBehavior
Set
SetEscape
SetOnOff
SetExact
SetOnOff
SetExclusive
SetOnOff
SetFdow
Set
SetFixed
SetOnOff
SetFullPath
SetOnOff
SetFweek
Set
SetHeadings
SetOnOff
SetHelp
SetOnOffTwo
SetHelpfilter
Set
SetHours
Set
SetIntensity
SetOnOff
SetKeycomp
Set
SetLibrary
Set
SetLock
SetOnOff
SetLogErrors
SetOnOff
SetMargin
Set
SetMackey
Set
SetMark
Set
SetMemoWidth
Set
SetMessage
SetTwo
SetMultiLocks
SetOnOff
SetNear
SetOnOff
SetNotify
SetOnOff
SetNull
SetOnOff
SetNullDisplay
Set
SetOdometer
Set
SetOLEObject
SetOnOff
SetOptimize
SetOnOff
SetPalette
SetOnOff
SetPath
Set
SetPrinter
SetOnOffTwo
SetPoint
Set
SetProcedure
Set
SetReadBorder
SetOnOff
SetRefresh
SetTwo
SetReprocess
Set
SetResource
SetOnOffTwo
SetResourceCreate
SetResource
SetSafety
SetOnOff
SetSeconds
SetOnOff
SetSeparator
Set
SetSpace
SetOnOff
SetStatus
SetOnOff
SetStatusBar
SetOnOff
SetStep
SetOnOff
SetSysFormats
SetOnOff
SetSysMenu
Set
SetTableValidate
Set
SetTalk
SetOnOff
SetTopic
SetTwo
SetTrBetween
SetOnOff
SetTypeahead
Set
SetUdfParms
Set
SetUnique
SetOnOff
SetView
SetOnOff
SetWindowOfMemo
Set
SetVfpDefaults
Custom
ON Classes
These classes save, set, and restore the various VFP ON commands that have corresponding ON() functions.
Class
Parent
OnError
On
OnKey
On
OnKeyLabel
On
OnShutDown
On
Workarea Helper Classes
These classes save, set, and restore the various aspects of saving the properties of work areas.
Class
Parent
SaveSelect
SaveArea
SetSelect
SaveSelect
SaveBuffering
SaveUsedArea
SetBuffering
SaveBuffering
SaveRecno
SaveUsedArea
SaveOrder
SaveUsedArea
SetOrder
SaveOrder
SaveFilter
SaveUsedArea
SetFilter
SaveFilter
SaveRelation
SaveUsedArea
SetRelation
SaveRelation
SaveTable
SaveUsedArea
SaveAllTables
Custom
OpenAliasCheckpoint
Custom
Miscellaneous Helper Classes
These classes save, set, and restore various other things.
Class
Parent
Notes
SaveProperty
Custom
SetProperty
SaveProperty
SetSysVar
Custom
MessageTimer
Timer
SetLockScreen
Custom
Saves and sets form.lockScreen, resetting it when the instance goes out of scope.
ScopeTimer
Custom
Upon destroy() debugout the object's scope lifetime in seconds..
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/StevenBlack/envLib là nguồn chính thức.
StevenBlack/envLib có bao nhiêu sao?
StevenBlack/envLib có 15 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/StevenBlack/envLib. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
StevenBlack/envLib có những chủ đề gì?
GitHub topics của StevenBlack/envLib: "environment", "foxpro", "vfp", "vfp-environment", "visual-foxpro". TopGit xếp repo vào nhóm mã nguồn mở.
StevenBlack/envLib có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho StevenBlack/envLib. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
StevenBlack/envLib có trang demo không?
Dự án có trang chủ ở http://stevenblack.github.com/envLib/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
StevenBlack/envLib còn đang phát triển không?
Commit gần nhất trên StevenBlack/envLib là 6.0 năm trước (theo timestamp GitHub). Repo có 9 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc envLib có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về envLib.