Skip to content

Latest commit

 

History

History
34 lines (17 loc) · 777 Bytes

README.md

File metadata and controls

34 lines (17 loc) · 777 Bytes

"underscore" _()

Construct & Model complex Visual Foxpro Objects* adding properties, arrays and collections the easy way.

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

Usage:

with _( object , [ cNewPropertyName ] ) 

	.property1 = any valid vfp expression

	.property2 = any valid vfp expression

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

	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