-1

I have XE3 Installed on my machine, and am doing apps using FireMonkey 2, but there are plenty cases where I come to the point of missing identifiers. It keeps telling me that the Identifier is unknown, for most of the components I drop onto the form. Has anyone idea why it doesn't add to uses clauses automaticaly, or at least, where could I find the list of packages that includes coresponding components? For example, I can't even use TText component, since I can't find any info on where it lays.

Ps: yet another thing, are there any lists of operations that differ betwen VCL and Firemonkey forms? Like, I can't seem to use GetCurrentProcess in Firemonkey, while it works fine in VCL, but that operation is not included in basic info of the differs in Firemonkey-VCL forms...

Thank you for any help!

That Marc
  • 1,134
  • 3
  • 19
  • 42
  • Since `GetCurrentProcess` is a Windows function (located in `WinAPI.Windows`), you'll need to add that unit to the uses clause before you can use it. You can use any non-visual code in a Firemonkey app, even platform-specific ones, but you'll only be able to compile for said platform (unless you use `IFDEF`s). As for your problem regarding units not being added automatically, I've never experienced such behaviour. Typically, the unit won't be added until the first compile, but you can still work with objects from that unit prior to that. Try adding `FMX.Objects` if you're having problems. – Scott P Feb 25 '13 at 18:57
  • Thank you for your response. Will try that. And yes, I've also noticed that some (not all) of units are automatically added when compiling, but as far as I noticed, it seems like in VCL mode only - and they're added everytime I compile. So if it comes to unknown identifier, I just compile it, and it repairs itself. But not in Firemonkey. I know, it is crossplatform mode, so I'd need to specify Windows functions manualy, but I'm pretty sure there is or should be a way of telling that only once, not constantly... – That Marc Feb 25 '13 at 22:58
  • Yep, looks like FMX.Objects did the trick with the TText component and few others. Not solving all of my problems, but seems like a good way to go. At least a clue to what's goin' on. Thank you for the help! – That Marc Feb 25 '13 at 23:03

1 Answers1

0

If you select the text of the item it complains about and click F1 for help, the help page will tell you the parent object which you can then add to the uses clause.

David Peters
  • 220
  • 1
  • 10
  • This might do the trick, I figured, yes. Just not used of using help, rather google or ask instead. Usualy I find it quick.. ;) Thanks. – That Marc Mar 04 '13 at 13:41