Recent

Author Topic: [SOLVED] VirtualStringTree Form2 problem  (Read 617 times)

Pe3s

  • Hero Member
  • *****
  • Posts: 596
[SOLVED] VirtualStringTree Form2 problem
« on: July 17, 2022, 08:02:17 pm »
Hello I have a question why can't I use
Code: Pascal  [Select][+][-]
  1. var
  2. Node: PVirtualNode;
on the second form ?
How can I solve this ?
« Last Edit: July 19, 2022, 05:46:03 pm by Pe3s »

jamie

  • Hero Member
  • *****
  • Posts: 6953
Re: VirtualStringTree Form2 problem
« Reply #1 on: July 18, 2022, 12:04:07 am »
Your second form is most likely in a different unit and there for has no access to it.

Place that variable in a unit that is shared among all others. That unit would be in the USES list of other units that needs access to it.

 Normally I create a unit named common or something like that and place all those values in that unit and then include that unit in other units of the USES list where I need access to it.
The only true wisdom is knowing you know nothing

Pe3s

  • Hero Member
  • *****
  • Posts: 596
Re: VirtualStringTree Form2 problem
« Reply #2 on: July 19, 2022, 05:45:30 pm »
Thank you  :)

 

TinyPortal © 2005-2018