Thanks Russ,
Did as you said and got this
Dim TheWholeName as string
Dim PatientNameSplitted() as String ' Renamed
TheWholeName = PatientName.Text
PatientNameSplitted() = Split(TheWholeName, " ") 'Splitting took place
PatientNameSplit(0).text = PatientNameSplitted(0) 'EditField
PatientNameSplit(0) populated now
PatientNameSplit(1).text = PatientNameSplitted(1) 'EditField
PatientNameSplit(0) populated now
and it works well.
Thanks again.
Lennox.
Russ Jones <[EMAIL PROTECTED]> wrote: Hi Lennox.
I see that you have also declared a local variable named
PatientNameSplit, which is local to the pushbutton.
I suggest that you rename the local variable to something else, then
move the results to the respective editfield.Text entries after you
do the split.
The program is doing exactly what you asked it to do: put the split
in the local variable, but not what you want as an end result: the
split result in the editfield.text fields.
Russ
On Aug 27, 2006, at 8:59 PM, Lennox Jacob wrote:
> Hello,
>
> I have an editfield named PatientName and two more named
> PatientNameSplit with their index set at 0 and 1
>
> I have a pushbutton with the following code in its action event
>
> Dim TheWholeName as string
> Dim PatientNameSplit() as String
> TheWholeName = PatientName.Text
> PatientNameSplit() = Split(TheWholeName, " ")
>
> When I enter aname in the editfield named PatientName, on pushing
> the pushbutton nothing happens - I expected the name to be split
> and show up in the two editfields named PatientNameSplit.
>
> Any suggestions.
>
> Thanks.
> Lennox.
_______________________________________________
Unsubscribe or switch delivery mode:
Search the archives of this list here:
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>