I IanT Registered User. Local time Today, 00:05 Joined Nov 30, 2001 Messages 191 Aug 8, 2005 #1 I have a string "HICX106-StandardTop-Venderedstest", I only want the first 30 letters or numbers ie "HICX106-StandardTop-Vendereds". Can anyone help, guess this is really easy!!!!!!!!!!
I have a string "HICX106-StandardTop-Venderedstest", I only want the first 30 letters or numbers ie "HICX106-StandardTop-Vendereds". Can anyone help, guess this is really easy!!!!!!!!!!
KenHigg Registered User Local time Yesterday, 19:05 Joined Jun 9, 2004 Messages 13,291 Aug 8, 2005 #2 Use the left() function.
Q QTNM Registered User. Local time Yesterday, 19:05 Joined Aug 5, 2005 Messages 67 Aug 8, 2005 #3 More specifically ..... left ( "HICX106-StandardTop-Venderedstest" , 30 ) *extra spacing for better readability! Hope that helps! QT
More specifically ..... left ( "HICX106-StandardTop-Venderedstest" , 30 ) *extra spacing for better readability! Hope that helps! QT
KenHigg Registered User Local time Yesterday, 19:05 Joined Jun 9, 2004 Messages 13,291 Aug 9, 2005 #4 It hardly makes sense to hardcode the string Maybe something like: left(myFldName,30)
Q QTNM Registered User. Local time Yesterday, 19:05 Joined Aug 5, 2005 Messages 67 Aug 9, 2005 #5 yes I understand that ..... I am showing him how the function works .... he can put it in a debug window to check how it works and play with it .... I agree .... s/he should refer to the field not the string itself. QTNM
yes I understand that ..... I am showing him how the function works .... he can put it in a debug window to check how it works and play with it .... I agree .... s/he should refer to the field not the string itself. QTNM