Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RunTime Intellisense part 2
Message
From
23/11/2005 02:33:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01071099
Message ID:
01071464
Views:
27
>>>>Can you post the Intellisense script that you're trying to get to work in runtime?
>>>
>>>No script, just want to have the field list drop whenever you enter in the window SomeTable. , so i can have them choose from the field names...
>>
>>Jaime,
>>
>>Let me rephrase my question. How would you acomplish that in development?
>
>Go in the command window. Type USE SomeTable.
>Then write SELECT SomeTable. and bam <--- you see the fields list. That's what i want at runtime but i saw in help that runtime doesn't care of the T option in EditorOptions...
>This is an editbox that holds a condition ( real VFP condition ) that i then check for validity and run against a table. I do at runtime a modify command, then enter the contents into the editbox, which works great ( better than using the memo field in browse ).
>
>Thanks
>Jaime
CREATE CURSOR byby (aa i,bb i,cc i,dd i)

WITH CREATEOBJECT("Form")
	.AddObject("edit","myEdit")
	.Edit.Visible = .T.
	.Show(1)
ENDWITH
USE IN BYBY

DEFINE CLASS myEdit AS EditBox

PROCEDURE rightClick
	SELECT byby
	DEFINE POPUP fields FROM MROW(0),MCOL(0);
           TITLE "Fields List" SHORTCUT PROMPT STRUCTURE
	ON SELECTION POPUP fields .SelText = PROMPT()
	WITH m.this
		ACTIVATE POPUP fields
	ENDWITH
	RELEASE fields
ENDPROC

ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform