Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create table dynamically using strings within a class
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01075057
Message ID:
01075859
Views:
21
Well, i was born in Ceuta and lived half in Tetouan and half in Ceuta during all my childhood. My family is originally from Tetouan, and i think that there is still some far related family living there even now.
Never been back for a visit, although i plan to do so ( my brothers and sisters have been back there a gazillion times already ).

Jaime

>>Lucky you :-) I remember the whole 40km of beaches there as the most beautiful i ever saw...Martil, Cabo Negro, Snir...Also great Club Meds in there too...
>
>Indeed :), Tetouan and its surroundings are popualar for this reason. Have you never been back for a visit? BTW, were you a part of the jewish population there (IOW are you a Moroccan jew). Or lived your family there for other reasons.
>
>>
>>Jaime
>>
>>>Hi Jaime,
>>>
>>>>Zakaria
>>>>The reason it doesn't work is since & macro expansion stops at the . after the this . I've been bitten by this one many times...
>>>
>>>Ah I see, it works that way.
>>>
>>>>Greetings to Tetouan by the way, i lived there from age 2 to 12 :-)
>>>
>>>Then you have lived in it more than I have. Although I was born in Tetouan and have the Moroccan nationality, I have been living the most part of my life in The Netherlands. Next year in the summer I'll be there again on vaccation, if life lets me.
>>>
>>>
>>>>
>>>>Jaime
>>>>
>>>>
>>>>>Hi All,
>>>>>
>>>>>I managed to create a table dynamically using strings within a class function by the follwing code:
>>>>>
>>>>>FUNCTION test()
>>>>>cTableName = "gbm6165"
>>>>>cFieldStructure = [Age I, Lx N(10,4),Qx N(10,8),Dx N(10,4),Nx N(10,4),Sx N(10,4), Cx N(10,4),Mxstreep N(10,4),] + ;
>>>>>				  [Rxstreep N(10,4)]
>>>>>CREATE TABLE (cTAbleName)(&cFieldStructure)
>>>>>ENDFUNC
>>>>>
>>>>>
>>>>>In reality cFieldStructure is a property, but somehow I have to call it local within the function to let the above code work. Now what I really want is something like this:
>>>>>
>>>>>CREATE TABLE (cTAbleName)(&this.cFieldStructure)
, but that fails
>>>>>
>>>>>Do you know what to correct?
>>>>>
>>>>>Thanks beforehand
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Reply
Map
View

Click here to load this message in the networking platform