how to restricts this txt field. ...

Discussion in 'Tally Developer' started by Pulkit lila, Feb 12, 2013.

    
  1. Pulkit lila

    Pulkit lila New Member


    the field contains data such as...... 21.10.2012 or 11.11.2012.

    it is a text field.so i want to ristrict a user with the following conditions:

    1)after first two digits there should be a point "."
    2)after 3rd and fourth there should be a point "."
    3)only contains numeric values.

    for this i want to use CONTROL to ristrict the user.
    i cant use date format here because the UDF is string type which which already contains alot of data.so i cant change the UDF and thus cant use date format.

    plz help.....

    thanks,
    pulkit​
     


  2. admin

    admin Administrator Staff Member


    This type of query is already posted. Please check that..
     



  3. Hi Pulkit,

    Just I am applying alternate solution for your prolong query...

    1. Add a new Date Type UDF, Next to the existing String Type UDF
    2. Write a Function to read all the String Type UDF and Replace it to your new added Date Type UDF.
    3. Discard the old String Type UDF
     


  4. Pulkit lila

    Pulkit lila New Member


    thanx pritam for the reply,

    but i dont have any idea how to write a function to read all the String tpe UDF and replace it,could to suggest a similar code.

    pulkit.
     


Share This Page