Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add numeric string as property value?
Message
De
19/07/2009 23:58:16
 
 
À
19/07/2009 23:41:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Divers
Thread ID:
01412603
Message ID:
01413325
Vues:
58
>Al ---
>
>Suppose you entered (as you would like) a value of '1.00
>
>PEMEditor records the value as a character string '1.00'. That's fine ...
>
>Now, when you bring it back up to edit it ... how is PEMEditor supposed to know to show the leading quote mark? It certainly can't always show the quote mark, as that would be very confusing for the entry of all other character data.

I wasn't envisaging the PEM ever showing a leading quote for data like that. My initial thought was, if the value is shown as "1.00" in the property sheet, then it would come up as the same thing - "1.00" with the quotes - in the edit window at the top. If you wanted to help productivity, you could SelStart so the cursor was between the leading quote and the first character.

I don't see the leading single quote ever being stored.

>
>
>
>>>Al --
>>>
>>>The real pitfall in your suggestion is not the original entry of the value, but the re-entry.
>>>
>>>Excel is smart enough to remember that you entered a leading quote mark when you go back to a field.
>>>
>>>Property Window and PEMEditor can store nothing but the value, which means that they cannot remember whether a leading quote mark was entered.
>>>
>>>Thus, on re-entry of a value, you'd either always lose the original quote (oops!) or always have a leading quote (oops!).
>>
>>If you're editing an existing value, does the PEM editor not know the previous type?
>>
>>Suppose you have a string value "1.00" that you want to change to "1.10".
>>
>>If you select the first zero and overwrite it with 1, or delete it/type in a 1 then the editor could leave it as a string.
>>
>>If you prefer to delete the entire previous value, then enter "1.10", then you'd have to once again put in a leading ' to prevent the type being changed to numeric.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform