Skip to content

A replacement for AddProperty - simplifies adding object properties or items to arrays and collections!

License

Notifications You must be signed in to change notification settings

nfoxdev/underscore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"underscore" _()

Create Visual Foxpro Objects adding properties, arrays and collections the easy way.

Just make _.prg available in your search path and start using it.

see test_.prg for usage and quick start:

oMypc:

Usage:

with _( object [, cNewPropertyName ] ) 

	.property1 = any valid vfp expression

	.property2 = any valid vfp expression

	with _( .<newObjectPropertyName> [,cNewpropertyName] )

		.property = any valid vfp expression

	endwith

	 .myCollection = .newCollection( [Item1,Item2,... Item20 ]) 

	 .myList = .newList( [ Item1,Item2,... Item20 ] )

	 .additems( "< collection/array name >" , item1,item2,.. item20 )

	 with .newItemFor("< collection/array name >" [, collectionItemkey] )

		.itemproperty1 = value

		.itemproperty2 = value 

	 endwith

endwith

2025, Marco Plaza
GitHub/nfoxdev

About

A replacement for AddProperty - simplifies adding object properties or items to arrays and collections!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages