Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Placing cursor in editboxes
Message
De
29/08/2005 22:03:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01044974
Message ID:
01045001
Vues:
31
Search for the desired text with the at() function. This will give you the position (in characters), which you can then use with TextBox.SelStart.

>my msample text in editbox
>
>7: 0 Bus.Obj. Element set: PatientMedicareCardNum 2265388264
>7: 0 Bus.Obj. Element set: PatientReferenceNum 1
>7: 0 Bus.Obj. Element set: DateOfService 10082005
>7: 0 Bus.Obj. Element set: ReferralPeriodTypeCde S
>7: 9202 Bus.Obj. Element set: ReferringProviderNum 9202 Invalid value for data item. The data element does not comply with the values permitted or has failed a check digit check.
>7: 0 Bus.Obj. Element set: ReferralIssueDate 31012005
>6: 0 Business Object set: Service ./'01'/'AB01'
>7: 0 Bus.Obj. Element set: ItemNum 18240
>7: 0 Bus.Obj. Element set: ChargeAmount 5955
>
>i need to highlight the row contains no 9202
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform