To those thinking of using LiveCode

Nigel Soden nigels at amglighthouse.co.za
Fri Apr 5 04:57:28 EDT 2013


For some reason I'm limited to the size of email I can send and seems rather limited

! ----------------------------

command checkForFieldDataValidation
   
   global PLNListingDetailArray
   local tArrayElement
   
   put false into gFailedEntry
   
   repeat for each element tArrayElement in PLNListingDetailArray 
      if ValidateDataEntry( tArrayElement[1]) = true then
         put true into gFailedEntry
         focus on field tArrayElement[1]
         exit repeat
      end if
   end repeat
   
end checkForFieldDataValidation

! ----------------------------

function ValidateDataEntry pFieldName

   local tRtnValue

   put false into tRtnValue

   if PostValidation( pFieldName ) = true then
      if CheckForEmptyField( pFieldName ) = true then
         ShowValidationError( pFieldName )
         put true into tRtnValue
      end if
   end if
   
   return tRtnValue

end ValidateDataEntry

! ----------------------------




More information about the use-livecode mailing list