Subscribe to this thread
Home - General / All posts - test API example
lionel

995 post(s)
#13-Jun-21 18:53

many questions when i test the code find in Manidfold API doc here

A)

When do a copy paste i have this

( the grey area seem Log but can't be detach

when add code around i have this

the grey area here is a log tab ( i create an image that show the GUI content show by tab "script" and "log"

Why this behaviour ? I was expected the code should work at first time ( copy paste)

So all the code must be wrap by """ class Script { content code }"""" now !!

B) Does code that use Schema is store or change the component already create/save in a *.map project ?

where can i see the x field name of type float64 in a GUI way ? in a GUI Way a schema appear in contextual sub menu of table icon locate insside pane/tab call "project" . So is there a way to attach schema to a table ? perhaps i mis understand the behaviour of schema ? inMAnifold API i have Table.GetSchema but not table.setSchema !

C) SQL also can use Class Script !!

codeSCRIPT funcs ENGINE 'c#' [[

  class Script

  {

    static System.DateTime F(Manifold.Geom unused) { return System.DateTime.Now; }

  }

]];

FUNCTION currentdate(@unused GEOM) DATETIME AS SCRIPT INLINE funcs ENTRY 'Script.F';

regards

Attachments:
post6_schemaC#.png
post6_schemaC#_a.png


Book about Science , cosmological model , Interstellar travels

Boyle surface fr ,en

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.