Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSession.Controls
Message
 
To
19/08/1999 12:10:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00255352
Message ID:
00255394
Views:
11
Hi Mike,

This what I've been using. It's based on some code that Ed Pikman showed me.
** Retrieve the names of everything in a forms DE
=amembers(laTableNames, thisform.dataenvironment, 2)

** If any exist
IF vartype(laTableNames) != "U"
	FOR lnCount = 1 TO alen(laTableNames)

		** strip off all the relation objects
		IF like("CURSOR*", laTableNames(lnCount))

			lcTable = "thisform.DataEnvironment."+ laTableNames[lnCount]+ ".cursorsource"
			lcTable = eval(lcTable)

			** rebuild the array
			DIMENSION paTablesUsed(lnUsedCount,1)
			paTablesUsed(lnUsedCount,1) = lcTable
			lnUsedCount = lnUsedCount + 1
		ENDIF
	ENDFOR
ENDIF
>Is there a way to loop through all controls in a datasession ( I didn't see a controls or objects property ) and only choose the Cursor base classes, or do I have loop hrough the work areas period?
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform