PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Douglas McDonald on February 09, 2011, 03:04:38 PM

Title: Type Structure
Post by: Douglas McDonald on February 09, 2011, 03:04:38 PM
Adding an element to a Type Structure doesn't update the elements list.

I had this :
Type entryFieldsType
   discription As String * 32
   pn As String  * 32
   package As String  * 16
   qty As Long       
   optSuppler As Long
   volts As String  * 16
   optvolts As Long
   ohms As String  * 16
   optOhms As Long
   amps As String  * 16
   optAmps As Long
   Cap As String  * 16
   optcap As Long
   power As String * 16
   OptWatts As Long
   induct As String * 16
   optInd As Long
   tol As Long
End Type
Global de As entryFieldsType


I added memo As String * 512

Type entryFieldsType
   discription As String * 32
   pn As String  * 32
   package As String  * 16
   qty As Long       
   optSuppler As Long
   volts As String  * 16
   optvolts As Long
   ohms As String  * 16
   optOhms As Long
   amps As String  * 16
   optAmps As Long
   Cap As String  * 16
   optcap As Long
   power As String * 16
   OptWatts As Long
   induct As String * 16
   optInd As Long
   tol As Long
   memo As String * 512
End Type
Global de As entryFieldsType


Now when I type de.  the elements list does not contain "meno"

Thanks
Doug
Title: Re: Type Structure
Post by: Paul Squires on February 09, 2011, 06:34:18 PM
I think that you need to Save the Form in order to force a re-parsing of the code?
Title: Re: Type Structure
Post by: Douglas McDonald on February 09, 2011, 06:52:48 PM
Paul I tried that. I even quit FF3 and restarted. It still wasn't there.
I've seen some other strange things like not being able to select a control in code mode to get it's "events" no matter what is stays on the main form. Say I want to select an event for the listview. I can find the listvew(control name) in the list but if I try and select it it just go's back to the main form. I have to go to the design mode then dblclick it to get it to come up in the list. Then I can select things like mouse up/ mouse down ect...Most of the time it works as it should but at times there's no we to make it work short of rebooting.

Maybe it's my pc. I can't make it happen here at home. Both are running win7 x64. Strange

Doug