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 |
 |
 |
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. |
 |
 |
mtsoulis
Posts: 17
|
Posted: 04/28/2020, 2:44 PM |
|
Thank you my friend!
Best regards from Greece!
Miltos
_________________
Miltos-Greece |
 |
 |
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) |
 |
 |
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)."....");
}
|
 |
 |
|