Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing string characteristics while building
Message
From
13/07/2016 12:18:11
 
 
To
13/07/2016 09:27:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01638321
Message ID:
01638332
Views:
80
>Is there a way to change the characteristics of certain portions of a string while you are building that string?
>
>Silly example: you mouse over product number. In a popup EditBox below that, you want to display the Description, Isle Number, Bin Number, and Inventory of the item. For argument sake you want the Isle Number one color, and the Bin Number underlined when it appears in the EditBox. Code to build the string would be something like:
>
>Thisform.Editbox1.Value=table.description+chr(13)+chr(10)+'Isle: '+str(table.IsleNum)+chr(13)+chr(10)+'Bin #: '+str(table.BinNum)+chr(13)+chr(10)+'On Hand: '+str(table.Inventory)
>
>
>How would one add those characteristic changes while building such a type of string?
>
>Many thanks!

John,
You should use either RTF or (I reccon) easier HTML to accomplish this in a new form which you can use as popup EditBox
After you have built the class to do this for you, it should be only a few lines, building the class can cause you maybe a full day's work.
Is that worthwhile?
Regards,
Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform