PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Roger Garstang on March 19, 2010, 05:25:50 PM

Title: FF Functions inserting wrong
Post by: 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.
Title: Re: FF Functions inserting wrong
Post by: John Montenigro on March 29, 2010, 09:55:50 AM
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.
Title: Re: FF Functions inserting wrong
Post by: Cho Sing Kum on March 29, 2010, 10:41:28 AM

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, ...

Title: Re: FF Functions inserting wrong
Post by: John Montenigro on March 29, 2010, 10:50:58 AM
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.
Title: Re: FF Functions inserting wrong
Post by: Cho Sing Kum on March 29, 2010, 10:59:49 AM

John,

See attached screen shot.

Title: Re: FF Functions inserting wrong
Post by: Paul Squires on March 29, 2010, 11:24:44 AM
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.
Title: Re: FF Functions inserting wrong
Post by: Roger Garstang on March 29, 2010, 11:34:09 AM
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.