How can I make string executive?

mirjanammirjanam Member Posts: 8
For example 'CurrForm.Status.EDITABLE(TRUE)' or someting like that but in variable type Text?

Comments

  • BeliasBelias Member Posts: 2,998
    let's see...hope to understand you correctly:
    you have a form and a textbox in it with sourceexpr = "mytextvariable".
    you want to change the editability of this textbox by code.

    If so, compile "name" property of the textbox: after that you can do:
    Currform.nameofthetextbox.editable(true);
    
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • mirjanammirjanam Member Posts: 8
    Thank you, but I already know this. I want to get it like a parameter, so it is in text variable or I can make a string of it. I want to make it executive.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You can't make it dynamic. The name of the control cannot be replaced with a variable.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • BeliasBelias Member Posts: 2,998
    :-k maybe i understood now...but i'm more confused now...
    you want a text string to become a line of code automatically?
    no, you can't!
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • BeliasBelias Member Posts: 2,998
    You can't make it dynamic. The name of the control cannot be replaced with a variable.
    ok Luc, maybe you can read other men's mind :mrgreen:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • mirjanammirjanam Member Posts: 8
    Yes, I want a text string to become a line of code.
    Thank you. I see that's not possible
Sign In or Register to comment.