Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox
Message
From
14/01/2017 10:33:48
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
 
To
13/01/2017 23:49:42
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01646654
Message ID:
01646684
Views:
62
In my vfp6 fwk all my control base classes sported a .afterFormControlsInit(), which was triggered from the forms base .init().
Today I'd probably code as event bound to run after the forms .init()


>>>In my combobox I face the problem that properties List, ListCount, ListIndex, ListId are not availble ("Expression could not be evaluated") and therefor a commandy
>>>
>>>For liLstcnt = 1 To This.ListCount
>>>
>>>results in error "Command is not recognized"
>>>
>>>I believe this is caused since I do a requery too early, combox is not yet fully instantiated.
>>>Any idea how to check that properties are existing?
>>
>>PEMStatus() lets you check whether a property exists.
>>
>>My suggestion, though, is don't do call Requery both the combo is fully instantiated. What are you trying to do?
>>
>>Tamar
>Hi,
>
>1) Pemstatus(This,'Listcount',5) returns 5
>2) I am trying to built a combobox with a dynamical rowsource:
>Thisform.cboCLUBS.RowSource = 'Select pcode from pstcode where address = m.lcCbo2 order by 1 into cursor curPostcode2 NOFILTER'
>this is called from the form.setcombo, which is called from the cboCLUBS.gotFocus
>Have meanwhile removed the requery from the init, no error "Command is not recognized" anymore, also no cursor in my combo, although in datasession I find the cursor available.
>
>Suppose I will have to rebuilt / review all my coding.
>
>Regards,
>Koen
Previous
Reply
Map
View

Click here to load this message in the networking platform