Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of Nothing in VB
Message
 
 
To
08/06/2005 13:43:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01021162
Message ID:
01021522
Views:
20
Greg,

You may need to get someone more familiar with what the exact binary definition of nothing is in VB to be able to get this to work from VFP.

You might try this:
loNothing = createobject( "CodeMax.TokenSet.4" ) && get this as an ActiveX object
loNothing = .NULL. && now zap it

loText = CREATEOBJECT("CodeMax.TokenSet.4")
WITH loText
	.Name = "Text"
	.Id   = cmTsIdText
	.ValidScopes.Add(loNothing)
ENDWITH
Other than that you'll have to figure out how nothing is defined to be able to find the right argument to pass this Add() method. Have you checked the Wiki http://fox.wikis.com/wc.dll?Wiki~FoxForumWiki and/or Googled to see if anyone else has worked out using the CodeMax controls from VFP?

>You will need to install the CodeMax control (demo available from http://www.winmain.com) in order to be able to execute the code. The above sample is being converted from a VB example that is included with CodeMax. From the developer of the control, the Nothing keyword in the Add method parameter is required to set the scope to global of the loText object.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform