Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Concatenate
Message
From
25/08/2007 08:33:43
 
 
To
19/08/2007 03:01:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01248935
Message ID:
01250429
Views:
31
Hi Qasem,

I didn't understand your problem very well, but think you need to do something like this:
* First concatenate the 2 strings in 1 ultimate string
m.stringHolder = table1.StringField1 + table1.StringField2

* After that (maybe at the form.init) you define what form object will contain (and display) your variable.
* Of course you could do this visualy but i think you know it
form1.text1.controlsource = "m.stringHolder"
But it will remain a problem: what to do with the altered data? Unless this data will be only for displaying purposes, you will need to realocate it back to the two fields of the respective table, and it will be almost impossible to know wich part of the concatenated value will go to StringField1 and to StringField2.

But if you need only to display the value (and by your message it seems so) you don't have to worry about it.

Joaquim

>hi,
>
>i need to display 2 fileds at mytext like one field,the user ask for that
>
>i know i can display as 2 text or another way but i need to know how i can do that at one field via vfp code,
>
>to know or to learn how you can do it better if you don't know.
>
>sorry for my english language.
>
>thanks.
>
>>>hi all,
>>>
>>>i try to concatenate 2 fields with 2 space between it.
>>>
>>>thanks
>>>
>>>
>>>with thisform.combo1
>>>  *thisform.text4.value= .List(.ListIndex,1)+CHR(13) + CHR(10) +.List(.ListIndex,2)
>>>*  thisform.text4.value= .List(.ListIndex,1)+LTRIM(.List(.ListIndex,2))
>>>thisform.text4.value=ltrim(.List(.ListIndex,1)+lTRIM(.List(.ListIndex,2)))
>>>endwith
>>>
>>
>>Hi Mohammed,
>>
>>I didn't understand your problem.
>>What you want to do was this?
>>
>>with thisform.combo1
>>   thisform.text4.value = ltrim(.List(.ListIndex,1) +  space(2) + lTRIM(.List(.ListIndex,2)))
>>endwith
>>
>>
>>Joaquim
Previous
Reply
Map
View

Click here to load this message in the networking platform