Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7 Combo Format/InputMask if there is no Rowsource ?
Message
De
15/10/2001 15:38:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00568483
Message ID:
00568734
Vues:
14
>>
>>This is the scenario:
>>
>>* The user clicks an "Add new record" CmdButton next to the List / ComboBox
>>* The style is set to Combobox
>>* Focus is transferred to the Combobox
>>* Rowsource is set to ""
>>* User types in a new value or does something else
>>
>>* The valid clause fires
>>*
>>
>>WITH THIS
>>  IF EMPTY(.ROWSOURCE)
>>    IF NOT SEEK(ALLTRIM(.DISPLAYVALUE),"CollectionSets","Collection")
>>      INSERT INTO CollectionSets (CollectionSet) VALUES (.DISPLAYVALUE)
>>    ENDIF
>>    .STYLE= 2
>>    .ROWSOURCE="CollectionSets.CollectionSet"
>>  ENDIF
>>ENDWITH
>>
>>
>>For some reason, setting the Format and/or Inputmask properties to ="@!TAAAAA"
>>does not work.
>>
>>It works fine on the table, so does this mean no rowsource - no validation?
>>
>>Is there a workaround or am I just being stupid?
>>
>>
>>TIA
>
>Take a look at file#9596.

Sergey,

Thanks a lot, this may just do it.
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform