Skip to main content

Dica de If para verificar variável com valor

Normalmente quando desejamos verificar se determinada variável tem algum valor, usamos um If da seguinte forma:

If FC VAR ALFA is not equal to BLANK And
FC VAR ALFA is not equal to NULL
End If

Quando a variável é numérica o If fica ainda maior:

If FC VAR NUM is not equal to BLANK And
FC VAR NUM is not equal to NULL And
FC VAR NUM is not equal ZERO to
End If

Esses Ifs podem ser substituídos por um bem mais simples:

If FC VAR ALFA is greater than BLANK

Pode também ser utilizado para campo numérico... façam os testes !

If FC VAR NUM is greater than BLANK

Se quisermos verificar se a variável está em branco, é só mudar o comparador lógico.

If FC VAR ALFA is less than or equal to BLANK

Pode também ser usado para variável numérica, que tem valor inicial = 0 (zero)

If FC VAR NUM is less than or equal to BLANK

Bom trabalho !!!

Eduardo Camargo dos Santos


Popular posts from this blog

INFOCUS 2012 - Agenda

JD Edwards 9.1 Standalone Installation Tutorial

Hello and welcome to!

Here's a video tutorial on how to install the newest JD Edwards 9.1 version!

In only six steps and no magic, you will have your JD Edwards up and running, including the Web version! The JD Edwards team did an outstanding job on this new version and I'm proud to be the first to document in video the installation steps and show you the system working after the installation.

The tutorial is divided in the following steps:

Images download - E-DeliveryDirectory preparationOracle 11g 32 bit installationJDE Demo installationPost installation proceduresSystem check

By following the video you'll be able to have your own JD Edwards' instance running directly in your PC or you may also install as a Virtual Machine using Oracle Virtual Box. The base OS I'm using for this tutorial is Linux and as you can see, the Virtual Box VM works fast and is also stable. Please let me know if you need some information on how to setup a Virtual Box instanc…

Tools Release