CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 50 FIRST CHARACTERS OF A FIELD

Print topic Send  topic

Author Message
mtsoulis

Posts: 17
Posted: 04/16/2020, 4:51 AM

Dear friends my best regards from Greece!
I'm beginer in CodeCharge.
I need solution at the follwing 2 problems:

1. I need to show in one label (Label1) just 30 first characters of its connected memo field...
2. I would like, making mouse on a photo to popup a frame with descriptions of each record

how can i do it?
thanks in advance!!
Miltos

_________________
Miltos-Greece
View profile  Send private message
enko


Posts: 74
Posted: 04/26/2020, 4:03 PM

Hi
1) try https://stackoverflow.com/questions/15401179/how-do-i-o...tring-using-css
2) you can try using jquery o similar
_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps.
View profile  Send private message
mtsoulis

Posts: 17
Posted: 04/28/2020, 2:44 PM

Thank you my friend!
Best regards from Greece!
Miltos
_________________
Miltos-Greece
View profile  Send private message
DonWolli


Posts: 93
Posted: 05/01/2020, 3:38 AM

1. add a beforeShow event to that field, and with substr reduce it to 30 char https://www.w3schools.com/php/func_string_substr.asp
_________________
You may say I'm a dreamer, but I'm not the only one.(J.Lennon)
View profile  Send private message
saseow

Posts: 744
Posted: 02/20/2022, 7:39 PM

For limiting string lengths I do something like this:

global $var;
$var=$Component->GetValue();
if (strlen($var)>160){
$Component->SetValue(substr($Component->GetValue(),1, 10)."....");
}
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.