Do not let any software impress you!

Only let it convince your intellect.
Slider img 1
Do not look for a business paradise!

It is a waste of time.
Slider img 2
Only yourself can push you uphill.

There is no easy road to prizes.
Slider img 3
Productivity is the name of the game.

And you have to conquer it.
Slider img 4
As long as you understand it,

you will start to build your know-how.
Slider img 5
We can help with that.

We have the tools and the method.
Slider img 6

Usage of ComboBox in Forms



Sometimes there is a need for a field displayed in a Form to take some distinct values. The field itself is of type String. Into the Form, we must define the type as Combo. In AutoScript, the approach is as follows:

proc Form_Start()

  callCbLoad(“FIELD_NAME“, “VALUE1“, “VALUE2“, “VALUE3“)

end

In cases those values come from a database, then:

proc Form_Start()

   start_sql“*““KOSMOS“
     SELECTLVALUEFROMLIST_VAL
   end_sql
   q = QueryByName()
   callTExecute(q)
   count = TRecordCount(q)
   fori = 1tocount
        val = TGetFld(q,“LVALUE“)

        callCbLoad(“FIELD_NAME“,val)

        callTNext(q)
   next
   callFreeEmbSQL(q)

end