getPrefix on a mixed field [SOLVED by Adhavan S]

getPrefix on a mixed field [SOLVED by Adhavan S]

This is my first post, as I'm new to Creator.
Please give me some ideas on how I can solve the following problem:

I have a lookup field witch takes data from two fields: a Number and a Single line text, separated with " - " (example: 125 - The Customer One)
On another form I'm running an on-load deluge script, where I want to get the number and use it.
I have played using the get.Prefix of get.Suffix, as well as conversions to Decimal or  Numeric, etc.., without success.
suffix = customer.getsuffix(" - ");
prefix = customer.getprefix(" - ");

Can anyone help?