Re: Field form



On Sun, 18 Dec 2005 01:24:02 -0800, "Jemsson"
<Jemsson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>Hello
>
>I would like to know how is the correct code that use inside the filed
>called [Imperfekt]
>
>Can you make correct code for this I wrote:
>
> IF [Invinitiv] have " | *" then remove from these " |*" and keep first
>part of the word
> THEN
>if [Im1] start with "-*" then show [Invinitiv] + [Im1] without first
>chracter "-"
>ElseIf if [Im1] Not have first chracter "-" then Show [Im1]
> END IF
>
>
>Here is ex. number 2:
>Invinitiv ---=---> bog | sera
>Im1 ---- = ---> -de
>Result show like this: bogdede ( take only "bog" without "sera" & "de"
>without "-")
>
>
>Here is ex. number 2:
>Invinitiv ---=---> bogsera
>Im1 ---- = ---> -de
>Result show like this: bogserade (taked [Invinitiv] & [Im1] without "-"
>at begning)
>
>
>Here is ex. number 3:
>Invinitiv ----=---> bogsera
>Im1 ----=---> hej
>Result show like this: hej (it taked only [Im1] becuse there is not "-"
>at begning)
>
>
>Jessus Bless

How about something like this <<< Air Code >>>

Function Combined(Invinitiv As String, Im1 As String) As String
Dim MyArray()

If Left$(Im1, 1) = "-" Then
'-- Combine both strings
If InStr(1, Invinitiv, "|") > 0 Then
'-- It has a "|", use the string before the "|"
MyArray = Split(Invinitiv, "|")
Else
'-- Use the complete first string
MyArray = Split(Invinitiv)
End If
Combined = Trim(MyArray(0)) & Left$(Im1, 2)
Else
'-- Just use the complete second string
Combined = Im1
End If
End Function

_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
.



Relevant Pages

  • Re: Can I call Obj-C from a C++ source?
    ... The correct code is: ... If the string being substituted in was user input, ... vulnerable to a format string attack. ... That said, if you want to use NSLog from C or C++ code, and have a real reason ...
    (comp.sys.mac.programmer.help)
  • Re: Java program is not evaluating String value correctly...
    ... >:State Abbreviation and compare it for state specific programming. ... >:When it wasn't falling through the correct code, ... The way I'm filling the state abbreviation string ...
    (comp.lang.java.programmer)
  • Re: [C] simple string question
    ... > Alan wrote: ... >> then in a function at some time, I want to set the string to a ... >> what is the correct code? ... the program crashes ...
    (comp.lang.c)
  • Re: [C] simple string question
    ... > Alan wrote: ... >> then in a function at some time, I want to set the string to a ... >> what is the correct code? ... the program crashes ...
    (alt.comp.lang.learn.c-cpp)
  • Re: ListBox question
    ... other than a String, the compiler would complain. ... Dim myArray As Variant ... Dim myLong As Long ... I tested by entering a 'plain textbox shape' ...
    (microsoft.public.word.vba.general)