[Gambas-devel] context help

Charlie karl.reinl at ...16...
Thu Aug 19 21:54:36 CEST 2004


Rob schrieb:

>On Wednesday 18 August 2004 17:07, Benoit Minisini wrote:
>  
>
>>Why do you perform a search ? If you know the symbol name, and
>>its class, you can find easily find its page by searching in
>>the FExplorer treeview.
>>    
>>
>
>Will Analyze() give me good information if the user has selected 
>a keyword?  There's no documentation for Analyze() and nothing 
>that I saw in your code clued me in to the fact that I could 
>derive which component and class a given symbol was, let alone 
>return anything about keywords.
>
>At any rate, I think a search should always be a fallback 
>position when an exact match can't be found.
>
>Rob
>  
>
Salut Rob,

if you strip all lines from LineAnalyz exepte

DIM sPart AS String[]
DIM iPart AS Integer[]

    edtEditor.Analyze(sLine)
'   reading  Symbols
    sPart = GambasEditor.Symbols
'   reading  Types
    iPart = GambasEditor.Types

and if you wnat see it also

 PRINT sPart[nI] , iPart[nI] , GetColorsName(iPart[nI])  

but then you need GetColorsName

you will see somthig like that:

Draw.LineStyle = LINE.Dash
	
Output :
		Draw		5	Symbol
		.		4	Operator
		LineStyle	5	Symbol
		=		4	Operator
		LINE		2	Keyword
		.		4	Operator
		Dash		5	Symbol

Amicalement
Charlie









More information about the Devel mailing list