Results 1 to 2 of 2

Thread: basic coding in CR_v8

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    9

    basic coding in CR_v8

    Hi i'm a total newbee to crystal report and some very basic stuff still isn't clear to me.

    I created a new 'formula' (called"@check4null) and wanted to write this code:

    Code:
    shared zero as boolean
    
    if ({caric.codana}) ="" then
    zero = true
    else
    zero = false
    end if
    can someone explain me why i get a error message similar to "always have to assign a value to variable within the formula"?

    i'm using CR v.8.0

    Thank you so much! R.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: basic coding in CR_v8

    When writing formulas using Basic Syntax you need to assign the return value of the formula via the special variable appropriately called Formula

    Code:
    shared zero as boolean
    
    if ({caric.codana}) ="" then
    zero = true
    else
    zero = false
    end if
    
    formula = zero

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width