FF Functions inserting wrong

Started by Roger Garstang, March 19, 2010, 05:25:50 PM

Previous topic - Next topic

Roger Garstang

FF_StrCmp1
FF_RichEdit_SetText( ByVal_hRichEdit_As_Long, ByVal_sBuffer_As_String, ByVal_fPlainText_As_Long_) As_LongDeclare_Function_FF_RichEditStreamSetCallback( ByRef_Parm_As_FF_RichEditSetTextParmType, ByVal_pbBuffer_As_Dword, ByVal_cb_As_Long, ByRef_pcb_As_Long )


May be more...I clicked most of the recently added ones hoping the ones around for awhile weren't wrong, but there may be more.

John Montenigro

Quote from: Roger Garstang on March 19, 2010, 05:25:50 PM
FF_StrCmp1
FF_RichEdit_SetText( ByVal_hRichEdit_As_Long, ByVal_sBuffer_As_String, ByVal_fPlainText_As_Long_) As_LongDeclare_Function_FF_RichEditStreamSetCallback( ByRef_Parm_As_FF_RichEditSetTextParmType, ByVal_pbBuffer_As_Dword, ByVal_cb_As_Long, ByRef_pcb_As_Long )


May be more...I clicked most of the recently added ones hoping the ones around for awhile weren't wrong, but there may be more.

Roger,
Sorry I haven't been around for awhile - just now trying to catch up a bit, and wanted to check out what this problem is. However, I don't have enough to go on. Could you explain a bit more?

Also, I'm presuming
FF_RichEdit_SetText( ByVal_hRichEdit_As_Long, ByVal_sBuffer_As_String, ByVal_fPlainText_As_Long_) As_LongDeclare_Function_FF_RichEditStreamSetCallback( ByRef_Parm_As_FF_RichEditSetTextParmType, ByVal_pbBuffer_As_Dword, ByVal_cb_As_Long, ByRef_pcb_As_Long )


was meant to read:

FF_RichEdit_SetText( ByVal_hRichEdit_As_Long, ByVal_sBuffer_As_String, ByVal_fPlainText_As_Long_) As_Long

Declare_Function_FF_RichEditStreamSetCallback ( ByRef_Parm_As_FF_RichEditSetTextParmType, ByVal_pbBuffer_As_Dword, ByVal_cb_As_Long, ByRef_pcb_As_Long )


?

Give me a little more explanation of what problem you're seeing, and I'll try to duplicate it.

-JohnM.

Cho Sing Kum

#2

John,

All the underscores "_" in the paramters within the ( bracket ) should be spaces " " instead.

Eg:

(ByVal_hRichEdit_As_Long, ...

should be

(ByVal hRichEdit As Long, ...


John Montenigro

Cho,
Thanks! Yes; I failed to make that change explicitly in my post, although it was registering "internally" in my head... still too early to be 100% functional!  :-[ 

What had caught my eye was that the Declare seemed to be run into the preceding statement. But now you've got me thinking that both are just artifacts of Roger's text processor...

I'm still wondering what was the problem he was seeing...

-JohnM.

Cho Sing Kum


John,

See attached screen shot.


Paul Squires

Not sure that I understand what the problem is? The underscores are added in order to make deleting/replacing the parameters easier. You can simply double click on the parameter to highlight it and then type in the variable name that you needed. This is the same behaviour that was implemented way back in the early FF2 days.
Paul Squires
PlanetSquires Software

Roger Garstang

Sorry, Problem is when I insert:

FF_StrCmp1
That is all that inserts...no parameters, etc.

And when I insert:

FF_RichEdit_SetText

Instead of getting- FF_RichEdit_SetText( ByVal_hRichEdit_As_Long, ByVal_sBuffer_As_String, ByVal_fPlainText_As_Long_) As_Long

I get- FF_RichEdit_SetText( ByVal_hRichEdit_As_Long, ByVal_sBuffer_As_String, ByVal_fPlainText_As_Long_) As_LongDeclare_Function_FF_RichEditStreamSetCallback( ByRef_Parm_As_FF_RichEditSetTextParmType, ByVal_pbBuffer_As_Dword, ByVal_cb_As_Long, ByRef_pcb_As_Long )

The underscores are not the issue, in fact I was the one to request those a long time ago to do what Paul said and allow double clicking to replace content easier.