Rename the photo to upload

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
VanessaOlimpio
User
Posts: 9

Rename the photo to upload

Post by VanessaOlimpio »

Good afternoon!!!
I would like to rename the photo to upload ultilizando the CPF field profile that has not spaces. However, I imported some data from the previous version to the new version of the software.
Check that the picture field is empty, so that the ultilizei If as follows.

if (rsold [ "Fto"] = "")
{
var test = rsnew [ "CPF"];
rsnew [ "Fto"] = test + "jpg.";
}
else
{
var test rsold = [ "Fto"];
rsnew [ "Fto"] = test + "jpg.";
}
return true;


motfs
User
Posts: 258

Post by motfs »

VanessaOlimpio wrote:
if (rsold [ "Fto"] = "")

Try this code: (C# use == for comparison)
if (ew_Empty(rsold ["Fto"])) {
// your code
} else {
// your code
}


VanessaOlimpio
User
Posts: 9

Post by VanessaOlimpio »

Good Morning !!!
Thank you very much for your attention, it worked perfectly.


Post Reply