OK I'm just starting with FF after owning it for a year or so and am wondering why I get this error on such a simple task.
Is there something I'm not doing when I create a new project ?
I create a form with a text box and a command button.
I add the FF_TextBox_SetText function under the click event and get this error:
Error 519 in
C:\PROJECTS\TEST1\TEST1\CODEGEN_TEST1_FORM1_FORM.INC(805:003):
Missing declaration: FF_TEXTBOX_SETTEXT
Line 805: FF_TextBox_SetText (HWND_FORM1_TEXT1, "Hello World")
Function FORM1_COMMAND1_BN_CLICKED ( _
ControlIndex As Long, _ ' index in Control Array
hWndForm As Dword, _ ' handle of Form
hWndControl As Dword, _ ' handle of Control
idButtonControl As Long _ ' identifier of button
) As Long
FF_TextBox_SetText (HWND_FORM1_TEXT1, "Hello World")
End Function
hmmm, not sure why you would get such an error. I created the exact same type of project and ran it and got no errors. Check the code generated file named CODEGEN_PROJECT1_UTILITY.inc and look for the code for FF_TextBox_SetText (it is probably the last bit of code in that file).
Try changing the code from FF_TextBox_SetText to FF_Control_SetText to see if it makes a difference.
What compiler are you using? I wonder if the "(" parenthesis is making a difference. Try calling it like:
FF_TextBox_SetText HWND_FORM1_TEXT1, "Hello World"
You didn't change the name of the TextBox from TEXT1 to something else did you?
You are compiling and running from inside FireFly right? That is, you're not compiling and trying to run the CODEGEN*.* files from, say, JellyFish or PBEdit are you?
I only did that to get a copy of the error... ie. run it from PBEdit that is.
Look for a file in the FireFly installation called "FF_Functions.src". Is it there? That is the file (encrypted) that contains all of the FireFly wrapper functions. If that file is missing then you should re-install FireFly.
Have you tried starting a new project from scratch and recompiling? There certainly sounds like there is something wrong with your project. Did any of my other suggestions in my post make any difference?
The problem was having the Option for Force Bypass Checking for FireFly Functions checked.
Don't remember setting that, but at any rate when unchecked both the Control Set and TextBox Set funcitons work fine.
Sorry for the bother... I knew it had to be me :-)
Hi Jim, I totally forgot about that option :-[ I never use it.
Happy to hear that you're back up and running.
OK I'll bite... what is the purpose for that option?
Way back in Version 1, a beta tester wanted the option to enable/disable searching for embedded FireFly Functions in their projects. The reason was that the searching process was a little slow - especially for large projects. In FireFly 3 the searching is magitudes faster because of the hashing algorithm that I'm using. So, other than speeding up the code generation process (in cases where the user doesn't use FireFly Functions) the option is not all that useful.