Hi,
To create a variable, I can write, for example: LOCAL AAA
Is it possible to create such a variable programmatically ?
Natter wrote:Thanks Antonio, but this is somewhat not what I need. For example, I need to make 10 variables
for st=1 to 10
create variable "n_"+ltrim(str(st))
next
Marc Venken wrote:Natter wrote:Thanks Antonio, but this is somewhat not what I need. For example, I need to make 10 variables
for st=1 to 10
create variable "n_"+ltrim(str(st))
next
Natter wrote:Hi,
To create a variable, I can write, for example: LOCAL AAA
Is it possible to create such a variable programmatically ?
#include "hbclass.ch"
function Main()
local oVars := TLocal(), n
for n = 1 to 10
__objAddData( oVars, "n_" + LTrim( Str( n ) ) )
next
oVars:n_1 = 123
? oVars:n_1
return nil
return nil
CLASS TLocal
ENDCLASS
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 77 guests